mpsolve: make GUI optional

This commit is contained in:
Alex Epelde
2026-05-13 15:25:13 +02:00
committed by Weijia Wang
parent 14d90bda74
commit 8e03d5e6b5
+11
View File
@@ -12,6 +12,8 @@
gtk3,
pkg-config,
libsForQt5,
withGUI ? true,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -46,15 +48,24 @@ stdenv.mkDerivation (finalAttrs: {
bison
flex
pkg-config
]
++ lib.optionals withGUI [
libsForQt5.wrapQtAppsHook
];
buildInputs = [
gmp
]
++ lib.optionals withGUI [
gtk3
libsForQt5.qtbase
];
configureFlags = [
(lib.enableFeature withGUI "graphical-debugger")
(lib.enableFeature withGUI "ui")
];
enableParallelBuilding = true;
doCheck = true;