diff --git a/pkgs/by-name/ma/mathemagix/package.nix b/pkgs/by-name/ma/mathemagix/package.nix index 12680b6391645..647f42a072c0e 100644 --- a/pkgs/by-name/ma/mathemagix/package.nix +++ b/pkgs/by-name/ma/mathemagix/package.nix @@ -8,18 +8,18 @@ libtool, gmp, mpfr, - enable-algebramix ? true, - enable-automagix ? true, - enable-basix ? true, - enable-mmcompileregg ? true, - enable-mmcompiler ? true, - enable-mmdoc ? true, - enable-numerix ? true, - enable-analyziz ? true, - enable-graphix ? true, - enable-symbolix ? true, - enable-mmxlight ? true, - enable-caas ? true, + enableAlgebramix ? true, + enableAutomagix ? true, + enableBasix ? true, + enableMmcompileregg ? true, + enableMmcompiler ? true, + enableMmdoc ? true, + enableNumerix ? true, + enableAnalyziz ? true, + enableGraphix ? true, + enableSymbolix ? true, + enableMmxlight ? true, + enableCaas ? true, }: stdenv.mkDerivation (finalAttrs: { @@ -34,30 +34,19 @@ stdenv.mkDerivation (finalAttrs: { strictDeps = true; - configureFlags = lib.optionals enable-algebramix [ - "--enable-algebramix" - ] ++ lib.optionals enable-automagix [ - "--enable-automagix" - ] ++ lib.optionals enable-analyziz [ - "--enable-analyziz" - ] ++ lib.optionals enable-basix [ - "--enable-basix" - ] ++ lib.optionals enable-caas [ - "--enable-caas" - ] ++ lib.optionals enable-graphix [ - "--enable-graphix" - ] ++ lib.optionals enable-mmcompileregg [ - "--enable-mmcompileregg" - ] ++ lib.optionals enable-mmcompiler [ - "--enable-mmcompiler" - ] ++ lib.optionals enable-mmdoc [ - "--enable-mmdoc" - ] ++ lib.optionals enable-mmxlight [ - "--enable-mmxlight" - ] ++ lib.optionals enable-numerix [ - "--enable-numerix" - ] ++ lib.optionals enable-symbolix [ - "--enable-symbolix" + configureFlags = [ + (lib.enableFeature enableAlgebramix "algebramix") + (lib.enableFeature enableAutomagix "automagix") + (lib.enableFeature enableAnalyziz "analyziz") + (lib.enableFeature enableBasix "basix") + (lib.enableFeature enableCaas "caas") + (lib.enableFeature enableGraphix "graphix") + (lib.enableFeature enableMmcompileregg "mmcompileregg") + (lib.enableFeature enableMmcompiler "mmcompiler") + (lib.enableFeature enableMmdoc "mmdoc") + (lib.enableFeature enableMmxlight "mmxlight") + (lib.enableFeature enableNumerix "numerix") + (lib.enableFeature enableSymbolix "symbolix") ]; buildInputs = [