mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +02:00
package.nix: Empty build inputs if not doBuild
This commit is contained in:
parent
22f943bb1f
commit
17b5d40445
1 changed files with 6 additions and 4 deletions
10
package.nix
10
package.nix
|
@ -216,7 +216,8 @@ in {
|
||||||
] ++ lib.optional stdenv.hostPlatform.isStatic unixtools.hexdump
|
] ++ lib.optional stdenv.hostPlatform.isStatic unixtools.hexdump
|
||||||
;
|
;
|
||||||
|
|
||||||
buildInputs = lib.optionals doBuild [
|
buildInputs = lib.optionals doBuild (
|
||||||
|
[
|
||||||
brotli
|
brotli
|
||||||
bzip2
|
bzip2
|
||||||
curl
|
curl
|
||||||
|
@ -238,12 +239,13 @@ in {
|
||||||
# There have been issues building these dependencies
|
# There have been issues building these dependencies
|
||||||
++ lib.optional (stdenv.hostPlatform == stdenv.buildPlatform && (stdenv.isLinux || stdenv.isDarwin))
|
++ lib.optional (stdenv.hostPlatform == stdenv.buildPlatform && (stdenv.isLinux || stdenv.isDarwin))
|
||||||
aws-sdk-cpp
|
aws-sdk-cpp
|
||||||
;
|
);
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = lib.optionals doBuild ([
|
||||||
boost
|
boost
|
||||||
nlohmann_json
|
nlohmann_json
|
||||||
] ++ lib.optional enableGC boehmgc;
|
] ++ lib.optional enableGC boehmgc
|
||||||
|
);
|
||||||
|
|
||||||
dontBuild = !attrs.doBuild;
|
dontBuild = !attrs.doBuild;
|
||||||
doCheck = attrs.doCheck;
|
doCheck = attrs.doCheck;
|
||||||
|
|
Loading…
Reference in a new issue