File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 39
39
supportedSystems = import ./supported-systems.nix ;
40
40
defaultSystem = head supportedSystems ;
41
41
42
+ inputMap = { "https://input-output-hk.github.io/cardano-haskell-packages" = CHaP ; } ;
43
+
42
44
overlays = [
43
45
haskellNix . overlay
44
46
iohkNix . overlays . haskell-nix-extra
57
59
environments ;
58
60
} ;
59
61
} )
60
- ( import ./nix/pkgs.nix )
62
+ ( import ./nix/pkgs.nix { inherit inputMap ; } )
61
63
] ;
62
64
63
65
in eachSystem supportedSystems ( system :
Original file line number Diff line number Diff line change 7
7
# Enable profiling
8
8
, profiling ? config . haskellNix . profiling or false
9
9
# Version info, to be passed when not building from a git work tree
10
- , gitrev } :
10
+ , gitrev
11
+ # Map from URLs to input, for custom hackage sources
12
+ , inputMap } :
11
13
let
12
14
13
15
projectPackages = lib . attrNames ( haskell-nix . haskellLib . selectProjectPackages
14
16
( haskell-nix . cabalProject' {
15
- inherit src ;
17
+ inherit src inputMap ;
16
18
compiler-nix-name = compiler ;
17
19
} ) . hsPkgs ) ;
18
20
58
60
# This creates the Haskell package set.
59
61
# https://input-output-hk.github.io/haskell.nix/user-guide/projects/
60
62
pkgSet = haskell-nix . cabalProject' {
61
- inherit src ;
63
+ inherit src inputMap ;
62
64
compiler-nix-name = compiler ;
63
65
modules = [
64
66
{
Original file line number Diff line number Diff line change
1
+ { inputMap } :
1
2
# our packages overlay
2
3
final : prev :
3
4
with final ;
14
15
name = "cardano-db-sync-schema" ;
15
16
} ;
16
17
17
- cardanoDbSyncProject = callPackage ./haskell.nix { inherit compiler ; } ;
18
+ cardanoDbSyncProject = callPackage ./haskell.nix { inherit compiler inputMap ; } ;
18
19
19
20
cardanoDbSyncHaskellPackages = cardanoDbSyncProject . hsPkgs ;
20
21
You can’t perform that action at this time.
0 commit comments