Merge pull request #27407 from obsidiansystems/null-configure-flags
mkDerivation: Fix errors from #27365
This commit is contained in:
commit
7d95391f6a
@ -98,9 +98,11 @@ rec {
|
|||||||
propagatedNativeBuildInputs = lib.elemAt propagatedDependencies' 0;
|
propagatedNativeBuildInputs = lib.elemAt propagatedDependencies' 0;
|
||||||
propagatedBuildInputs = lib.elemAt propagatedDependencies' 1;
|
propagatedBuildInputs = lib.elemAt propagatedDependencies' 1;
|
||||||
|
|
||||||
# This parameter is sometimes a string and sometimes a list, yuck
|
# This parameter is sometimes a string, sometimes null, and sometimes a list, yuck
|
||||||
configureFlags = let inherit (lib) optional elem; in
|
configureFlags = let inherit (lib) optional elem; in
|
||||||
(if lib.isString configureFlags then [configureFlags] else configureFlags)
|
(/**/ if lib.isString configureFlags then [configureFlags]
|
||||||
|
else if configureFlags == null then []
|
||||||
|
else configureFlags)
|
||||||
++ optional (elem "build" configurePlatforms) "--build=${stdenv.buildPlatform.config}"
|
++ optional (elem "build" configurePlatforms) "--build=${stdenv.buildPlatform.config}"
|
||||||
++ optional (elem "host" configurePlatforms) "--host=${stdenv.hostPlatform.config}"
|
++ optional (elem "host" configurePlatforms) "--host=${stdenv.hostPlatform.config}"
|
||||||
++ optional (elem "target" configurePlatforms) "--target=${stdenv.targetPlatform.config}";
|
++ optional (elem "target" configurePlatforms) "--target=${stdenv.targetPlatform.config}";
|
||||||
|
@ -3609,7 +3609,7 @@ with pkgs;
|
|||||||
(attrs: { nativeBuildInputs = attrs.nativeBuildInputs ++ [ gtk3 ];
|
(attrs: { nativeBuildInputs = attrs.nativeBuildInputs ++ [ gtk3 ];
|
||||||
# Fix this build error in ./tests/examples/waylandsink:
|
# Fix this build error in ./tests/examples/waylandsink:
|
||||||
# main.c:28:2: error: #error "Wayland is not supported in GTK+"
|
# main.c:28:2: error: #error "Wayland is not supported in GTK+"
|
||||||
configureFlags = attrs.configureFlags or "" + "--enable-wayland=no";
|
configureFlags = attrs.configureFlags or [] ++ [ "--enable-wayland=no" ];
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user