Commit 1b123f9f authored by Doron Behar's avatar Doron Behar
Browse files

gpm: use lib.withFeature instead of manual if else

parent 879306c3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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"