File tree Expand file tree Collapse file tree 6 files changed +14
-2
lines changed Expand file tree Collapse file tree 6 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 66
66
# any plutus-apps input being used for a
67
67
# package.
68
68
, evalPackages
69
+ , pkgconfSelector ? ( _ : [ ] )
69
70
, ...
70
71
} @args :
71
72
167
168
168
169
index-state-pinned = index-state != null || cabalProjectIndexState != null ;
169
170
171
+ pkgconfPkgs = import ./pkgconf-nixpkgs-map.nix pkgs ;
172
+
170
173
in
171
174
assert ( if index-state-found == null
172
175
then throw "No index state passed and none found in ${ cabalProjectFileName } " else true ) ;
463
466
} // pkgs . lib . optionalAttrs ( checkMaterialization != null ) {
464
467
inherit checkMaterialization ;
465
468
} ) ( evalPackages . runCommand ( nameAndSuffix "plan-to-nix-pkgs" ) {
466
- nativeBuildInputs = [ nix-tools dummy-ghc dummy-ghc-pkg cabal-install evalPackages . rsync evalPackages . gitMinimal ] ;
469
+ nativeBuildInputs = [ nix-tools dummy-ghc dummy-ghc-pkg cabal-install evalPackages . rsync evalPackages . gitMinimal evalPackages . pkgconfig ] ;
470
+ buildInputs = pkgconfSelector pkgconfPkgs ;
467
471
# Needed or stack-to-nix will die on unicode inputs
468
472
LOCALE_ARCHIVE = pkgs . lib . optionalString ( evalPackages . stdenv . buildPlatform . libc == "glibc" ) "${ evalPackages . glibcLocales } /lib/locale/locale-archive" ;
469
473
LANG = "en_US.UTF-8" ;
Original file line number Diff line number Diff line change @@ -143,7 +143,8 @@ pkgs:
143
143
"sctp" = [ pkgs . "lksctp-tools" ] ; # This is linux-specific, we should create a common attribute if we ever add sctp support for other systems.
144
144
"sdl2" = [ pkgs . "SDL2" ] ;
145
145
"sndfile" = [ pkgs . "libsndfile" ] ;
146
- "sodium" = [ pkgs . "libsodium" ] ;
146
+ "sodium" = [ pkgs . "libsodium" . dev ] ;
147
+ "libsodium" = [ pkgs . "libsodium" . dev ] ;
147
148
"sqlite3" = [ pkgs . "sqlite" ] ;
148
149
"ssh2" = [ pkgs . "libssh2" ] ;
149
150
"statgrab" = [ pkgs . "libstatgrab" ] ;
Original file line number Diff line number Diff line change 130
130
type = nullOr ( listOf unspecified ) ;
131
131
default = [ ] ;
132
132
} ;
133
+ pkgconfSelector = mkOption {
134
+ type = unspecified ;
135
+ default = ( _ : [ ] ) ;
136
+ } ;
133
137
} ;
134
138
}
Original file line number Diff line number Diff line change 7
7
project = project' {
8
8
inherit compiler-nix-name evalPackages ;
9
9
src = testSrc "exe-dlls" ;
10
+ pkgconfSelector = p : [ p . libsodium ] ;
10
11
} ;
11
12
12
13
packages = project . hsPkgs ;
Original file line number Diff line number Diff line change 7
7
project = project' {
8
8
inherit compiler-nix-name evalPackages ;
9
9
src = testSrc "exe-lib-dlls" ;
10
+ pkgconfSelector = p : [ p . libsodium ] ;
10
11
} ;
11
12
12
13
packages = project . hsPkgs ;
Original file line number Diff line number Diff line change 7
7
project = project' {
8
8
inherit compiler-nix-name evalPackages ;
9
9
src = testSrc "th-dlls" ;
10
+ pkgconfSelector = p : [ p . libsodium ] ;
10
11
} ;
11
12
12
13
packages = project . hsPkgs ;
You can’t perform that action at this time.
0 commit comments