gpm: use lib.withFeature instead of manual if else

This commit is contained in:
Doron Behar
2026-01-26 11:51:31 +02:00
parent 879306c36f
commit 1b123f9fce
+1 -1
View File
@@ -63,7 +63,7 @@ stdenv.mkDerivation {
configureFlags = [
"--sysconfdir=/etc"
"--localstatedir=/var"
(if withNcurses then "--with-curses" else "--without-curses")
(lib.withFeature withNcurses "curses")
# The code won't compile in c23 mode.
# https://gcc.gnu.org/gcc-15/porting_to.html#c23-fn-decls-without-parameters
"CFLAGS=-std=gnu17"