diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-09-25 18:13:40 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-09-27 20:49:38 -0300 |
commit | 87d05edb958eeff20df3622863a471e5fdf5763a (patch) | |
tree | 4a041554a829527058165b66c5b5470399025b3b /pkgs/tools/graphics/gmic-qt | |
parent | 47ffbb2df830bac739ed9427a2d6db21c304d443 (diff) |
gmic-qt: use lib.cmakeBool and lib.cmakeFeature
Diffstat (limited to 'pkgs/tools/graphics/gmic-qt')
-rw-r--r-- | pkgs/tools/graphics/gmic-qt/default.nix | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/tools/graphics/gmic-qt/default.nix b/pkgs/tools/graphics/gmic-qt/default.nix index 535a7cdd74f1..cbaecdf0b8a4 100644 --- a/pkgs/tools/graphics/gmic-qt/default.nix +++ b/pkgs/tools/graphics/gmic-qt/default.nix @@ -95,9 +95,9 @@ stdenv.mkDerivation (finalAttrs: { ''; cmakeFlags = [ - "-DGMIC_QT_HOST=${if variant == "standalone" then "none" else variant}" - "-DENABLE_SYSTEM_GMIC=ON" - "-DENABLE_DYNAMIC_LINKING=ON" + (lib.cmakeFeature "GMIC_QT_HOST" (if variant == "standalone" then "none" else variant)) + (lib.cmakeBool "ENABLE_SYSTEM_GMIC" true) + (lib.cmakeBool "ENABLE_DYNAMIC_LINKING" true) ]; postFixup = lib.optionalString (variant == "gimp") '' @@ -135,8 +135,11 @@ stdenv.mkDerivation (finalAttrs: { homepage = "http://gmic.eu/"; inherit (variants.${variant}) description; license = lib.licenses.gpl3Plus; - maintainers = [ lib.maintainers.lilyinstarlight ]; - platforms = lib.platforms.unix; mainProgram = "gmic_qt"; + maintainers = [ + lib.maintainers.AndersonTorres + lib.maintainers.lilyinstarlight + ]; + platforms = lib.platforms.unix; }; }) |