diff --git a/pkgs/by-name/gp/gpm/package.nix b/pkgs/by-name/gp/gpm/package.nix index 3ab2e882b896..6da949bbd575 100644 --- a/pkgs/by-name/gp/gpm/package.nix +++ b/pkgs/by-name/gp/gpm/package.nix @@ -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"