Skip to content

Commit

Permalink
!fixup Address @AndersonTorres feedback TIL, thanks !
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Apr 29, 2024
1 parent b429308 commit cfb7448
Showing 1 changed file with 25 additions and 36 deletions.
61 changes: 25 additions & 36 deletions pkgs/by-name/ma/mathemagix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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 = [
Expand Down

0 comments on commit cfb7448

Please sign in to comment.