chore(build): Change pin for default nixpkgs used to build Nixery

This moves the pin from just being in the Travis configuration to also
being set in a nixpkgs-pin.nix file, which makes it trivial to build
at the right commit when performing local builds.
This commit is contained in:
Vincent Ambo 2020-05-01 12:46:38 +01:00 committed by Vincent Ambo
parent bdda24a772
commit b4e0b55e56
3 changed files with 6 additions and 2 deletions

View file

@ -5,7 +5,7 @@ arch:
services: services:
- docker - docker
env: env:
- NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/5271f8dddc0f2e54f55bd2fc1868c09ff72ac980.tar.gz - NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/0a40a3999eb4d577418515da842a2622a64880c5.tar.gz
before_script: before_script:
- echo "Running Nixery CI build on $(uname -m)" - echo "Running Nixery CI build on $(uname -m)"
- mkdir test-files - mkdir test-files

View file

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
{ pkgs ? import <nixpkgs> { } { pkgs ? import ./nixpkgs-pin.nix
, preLaunch ? "" , preLaunch ? ""
, extraPackages ? [] , extraPackages ? []
, maxLayers ? 20 }: , maxLayers ? 20 }:

View file

@ -0,0 +1,4 @@
import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs-channels/archive/0a40a3999eb4d577418515da842a2622a64880c5.tar.gz";
sha256 = "1j8gy2d61lmrp5gzi1a2jmb2v2pbk4b9666y8pf1pjg3jiqkzf7m";
}) {}