1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

ghostscript: don't use lib.optional with a list

This commit is contained in:
figsoda 2023-05-29 19:41:39 -04:00
parent 2014fdae3d
commit b643a42a1f

View file

@ -60,7 +60,7 @@ let
in
stdenv.mkDerivation rec {
pname = "ghostscript${lib.optionalString (x11Support) "-with-X"}";
pname = "ghostscript${lib.optionalString x11Support "-with-X"}";
version = "10.01.1";
src = fetchurl {
@ -112,7 +112,7 @@ stdenv.mkDerivation rec {
] ++ lib.optionals dynamicDrivers [
"--enable-dynamic"
"--disable-hidden-visibility"
] ++ lib.optional x11Support [
] ++ lib.optionals x11Support [
"--with-x"
] ++ lib.optionals cupsSupport [
"--enable-cups"