package.nix: Empty build inputs if not doBuild

This commit is contained in:
Robert Hensing 2024-07-27 02:39:55 +02:00
parent 22f943bb1f
commit 17b5d40445

View file

@ -216,7 +216,8 @@ in {
] ++ lib.optional stdenv.hostPlatform.isStatic unixtools.hexdump
;
buildInputs = lib.optionals doBuild [
buildInputs = lib.optionals doBuild (
[
brotli
bzip2
curl
@ -238,12 +239,13 @@ in {
# There have been issues building these dependencies
++ lib.optional (stdenv.hostPlatform == stdenv.buildPlatform && (stdenv.isLinux || stdenv.isDarwin))
aws-sdk-cpp
;
);
propagatedBuildInputs = [
propagatedBuildInputs = lib.optionals doBuild ([
boost
nlohmann_json
] ++ lib.optional enableGC boehmgc;
] ++ lib.optional enableGC boehmgc
);
dontBuild = !attrs.doBuild;
doCheck = attrs.doCheck;