Skip to content

Commit

Permalink
Use nixpkgs from haskell.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
jhbertra committed Aug 8, 2022
1 parent bc597c4 commit 81be297
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion default.nix
Expand Up @@ -11,7 +11,6 @@
, sourcesOverride ? { }
, sources ? import ./nix/sources.nix { inherit system; } // sourcesOverride
, haskellNix ? import sources.haskell-nix {
pkgs = import sources.nixpkgs { inherit system; };
sourcesOverride = {
hackage = sources.hackage-nix;
stackage = sources.stackage-nix;
Expand Down
9 changes: 5 additions & 4 deletions nix/default.nix
Expand Up @@ -33,16 +33,17 @@ let
++ ownOverlays;


pkgs = import sources.nixpkgs {
inherit crossSystem;
nixpkgsArgs = haskellNix.nixpkgsArgs // {
overlays = haskellNix.nixpkgsArgs.overlays ++ extraOverlays ++ overlays;
config = haskellNix.nixpkgsArgs.config // config;
# In nixpkgs versions older than 21.05, if we don't explicitly pass
# in localSystem we will hit a code path that uses builtins.currentSystem,
# which breaks flake's pure evaluation.
localSystem = { inherit system; };
overlays = extraOverlays ++ overlays;
config = haskellNix.nixpkgsArgs.config // config;
};

pkgs = import haskellNix.sources.nixpkgs-unstable nixpkgsArgs;

marlowe = import ./pkgs { inherit pkgs checkMaterialization enableHaskellProfiling sources source-repo-override; };

in
Expand Down

0 comments on commit 81be297

Please sign in to comment.