Skip to content

Commit f31273e

Browse files
authored
Merge pull request #98 from input-output-hk/rvl/nixpkgs-pin
Pin nixpkgs to latest nixos-19.03
2 parents 0a68cd4 + aa4dbaa commit f31273e

23 files changed

+1355
-53
lines changed

.buildkite/pipeline.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
env:
2-
NIX_PATH: "nixpkgs=channel:nixos-18.09"
3-
NIX_BUILD_ARGS: "--cores 0 --max-jobs 2"
4-
51
steps:
62
- label: 'Run tests'
7-
command: "NIX_PATH=nixpkgs=channel:nixos-18.09 ./test/tests.sh"
3+
command: "./test/tests.sh"
84
agents:
95
system: x86_64-linux

.buildkite/updates.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
steps:
22
- label: 'Update hackage.nix'
33
command:
4-
- nix-build -I nixpkgs=channel:nixos-18.09 -A maintainer-scripts.update-hackage -o update-hackage.sh
4+
- nix-build -A maintainer-scripts.update-hackage -o update-hackage.sh
55
- echo "+++ Updating hackage.nix"
66
- ./update-hackage.sh
77
artifact_paths:
@@ -11,7 +11,7 @@ steps:
1111

1212
- label: 'Update stackage.nix'
1313
command:
14-
- nix-build -I nixpkgs=channel:nixos-18.09 -A maintainer-scripts.update-stackage -o update-stackage.sh
14+
- nix-build -A maintainer-scripts.update-stackage -o update-stackage.sh
1515
- echo "+++ Updating stackage.nix"
1616
- ./update-stackage.sh
1717
artifact_paths:

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# GitHub Linguist annotations.
2+
# Hide stuff that is generated by nix-tools plan-to-nix
3+
4+
nix-tools/.plan.nix/*.nix linguist-generated=true
5+
nix-tools/.plan-pkgs.nix linguist-generated=true
6+
.stack-to-nix.cache linguist-generated=true

default.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
{ pkgs ? import <nixpkgs> {}
1+
{ pkgs ? import nixpkgs {}
2+
# Use a pinned nixpkgs rather than the one on NIX_PATH
3+
, nixpkgs ? ./nixpkgs
24

35
# You can provide different pins for hackage.nix and stackage.nix if required.
46
# It's also possible to override these sources with NIX_PATH.
@@ -104,9 +106,7 @@ let
104106

105107
# Programs for generating Nix expressions from Cabal and Stack
106108
# files.
107-
nix-tools = self.callPackage ./nix-tools {
108-
inherit fetchExternal;
109-
};
109+
nix-tools = self.callPackage ./nix-tools { inherit fetchExternal; };
110110

111111
# Snapshots of Hackage and Stackage, converted to Nix expressions,
112112
# regularly updated.

nix-tools/.plan-pkgs.nix

Lines changed: 381 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix-tools/.plan.nix/hackage-db.nix

Lines changed: 67 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix-tools/.plan.nix/haskell-src-meta.nix

Lines changed: 50 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix-tools/.plan.nix/hnix.nix

Lines changed: 197 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)