Skip to content

Commit 38bf6fd

Browse files
authored
Merge pull request #44 from input-output-hk/rvl/fix-build
Fix build and import haskell.nix override
2 parents 4e2da73 + 7538d51 commit 38bf6fd

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

default.nix

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
1-
let
2-
overrideWith = override: default:
3-
let
4-
try = builtins.tryEval (builtins.findFile builtins.nixPath override);
5-
in if try.success then
6-
builtins.trace "using search host <${override}>" try.value
7-
else
8-
default;
9-
in
10-
111
{ pkgs ? import <nixpkgs> {}
122

133
# a different haskell infrastructure
14-
, haskell ? import (overrideWith "haskell"
15-
(pkgs.fetchFromGitHub { owner = "input-output-hk";
16-
repo = "haskell.nix";
17-
rev = "3584345a9ab001d1867e972a1a20b4406cbffd68";
18-
sha256 = "08pzfvspfl5nvn5szy7bv3rbwymjgmbdm1ac571c64fzhrwf5ghw";
19-
name = "haskell-lib-source"; }))
20-
{ inherit pkgs; }
4+
, haskell ? import haskellLibSrc { inherit pkgs; }
5+
, haskellLibSrc ? pkgs.fetchFromGitHub {
6+
owner = "input-output-hk";
7+
repo = "haskell.nix";
8+
rev = "0de60e8b0cd0338b82d25d6148246d1cdbf37a47";
9+
sha256 = "0j3mjlzwg8f95rsnj1vrcyivil65is16i48l1c3czm0ps39frch9";
10+
name = "haskell-lib-source";
11+
}
2112
}:
2213

2314
let

nix/.plan-pkgs.nix

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)