From b643a42a1f6e934deef1a7a0752ec05baa83419c Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 29 May 2023 19:41:39 -0400 Subject: [PATCH] ghostscript: don't use lib.optional with a list --- pkgs/misc/ghostscript/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/misc/ghostscript/default.nix b/pkgs/misc/ghostscript/default.nix index 2588e7e9140a..ad1f3e8e1e44 100644 --- a/pkgs/misc/ghostscript/default.nix +++ b/pkgs/misc/ghostscript/default.nix @@ -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"