Skip to content
Snippets Groups Projects
Commit c12d3ccd authored by Ben Gamari's avatar Ben Gamari :turtle:
Browse files

ci: Ensure that only a single nixpkgs is used

Previously ghc-artefact-nix would end up using a different nixpkgs from
the rest of the build. I believe this ended up bringing in multiple
incompatible glibcs.
parent 9fc99dd8
No related branches found
No related tags found
No related merge requests found
......@@ -110,10 +110,9 @@ build-9.0:
- nix run -f ./ci -c curl -L "$GHC_TARBALL" > ghc.tar.xz
- |
nix build \
-f https://github.com/mpickering/ghc-artefact-nix/archive/master.tar.gz \
--arg url ./ghc.tar.xz \
--out-link ghc \
ghcHEAD
-f ci/ghc-from-artifact.nix \
--arg ghcTarball ./ghc.tar.xz \
--out-link ghc
- export GHC=`pwd`/ghc/bin/ghc
- rm -Rf $HOME/.cabal/packages/local ci/run
# Build CI executable
......
let
sources = import ./nix/sources.nix;
nixpkgs = import sources.nixpkgs {};
in
{ ghcTarball }:
let
nixpkgsSrc = sources.nixpkgs;
ghc-artefact-nix =
let
src = nixpkgs.fetchFromGitHub {
owner = "mpickering";
repo = "ghc-artefact-nix";
rev = "5da00a2f9411f15a7e0cbacc0ad94ff4ffa195d7";
sha256 = "sha256:1ab2hc893vlsclddqyvw3yrhg33sn7pjckl2v8yi67d2jwc9zygn";
};
in import src {
url = ghcTarball;
nixpkgsSrc = sources.nixpkgs;
};
in ghc-artefact-nix.ghcHEAD
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment