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 6666 # any plutus-apps input being used for a
6767 # package.
6868, evalPackages
69+ , pkgconfSelector ? ( _ : [ ] )
6970, ...
7071} @args :
7172
167168
168169 index-state-pinned = index-state != null || cabalProjectIndexState != null ;
169170
171+ pkgconfPkgs = import ./pkgconf-nixpkgs-map.nix pkgs ;
172+
170173in
171174 assert ( if index-state-found == null
172175 then throw "No index state passed and none found in ${ cabalProjectFileName } " else true ) ;
463466 } // pkgs . lib . optionalAttrs ( checkMaterialization != null ) {
464467 inherit checkMaterialization ;
465468 } ) ( 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 ;
467471 # Needed or stack-to-nix will die on unicode inputs
468472 LOCALE_ARCHIVE = pkgs . lib . optionalString ( evalPackages . stdenv . buildPlatform . libc == "glibc" ) "${ evalPackages . glibcLocales } /lib/locale/locale-archive" ;
469473 LANG = "en_US.UTF-8" ;
Original file line number Diff line number Diff line change @@ -143,7 +143,8 @@ pkgs:
143143 "sctp" = [ pkgs . "lksctp-tools" ] ; # This is linux-specific, we should create a common attribute if we ever add sctp support for other systems.
144144 "sdl2" = [ pkgs . "SDL2" ] ;
145145 "sndfile" = [ pkgs . "libsndfile" ] ;
146- "sodium" = [ pkgs . "libsodium" ] ;
146+ "sodium" = [ pkgs . "libsodium" . dev ] ;
147+ "libsodium" = [ pkgs . "libsodium" . dev ] ;
147148 "sqlite3" = [ pkgs . "sqlite" ] ;
148149 "ssh2" = [ pkgs . "libssh2" ] ;
149150 "statgrab" = [ pkgs . "libstatgrab" ] ;
Original file line number Diff line number Diff line change 130130 type = nullOr ( listOf unspecified ) ;
131131 default = [ ] ;
132132 } ;
133+ pkgconfSelector = mkOption {
134+ type = unspecified ;
135+ default = ( _ : [ ] ) ;
136+ } ;
133137 } ;
134138}
Original file line number Diff line number Diff line change 77 project = project' {
88 inherit compiler-nix-name evalPackages ;
99 src = testSrc "exe-dlls" ;
10+ pkgconfSelector = p : [ p . libsodium ] ;
1011 } ;
1112
1213 packages = project . hsPkgs ;
Original file line number Diff line number Diff line change 77 project = project' {
88 inherit compiler-nix-name evalPackages ;
99 src = testSrc "exe-lib-dlls" ;
10+ pkgconfSelector = p : [ p . libsodium ] ;
1011 } ;
1112
1213 packages = project . hsPkgs ;
Original file line number Diff line number Diff line change 77 project = project' {
88 inherit compiler-nix-name evalPackages ;
99 src = testSrc "th-dlls" ;
10+ pkgconfSelector = p : [ p . libsodium ] ;
1011 } ;
1112
1213 packages = project . hsPkgs ;
You can’t perform that action at this time.
0 commit comments