From 1b123f9fce9d4582fc56fea556916b8a5bd18b22 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Thu, 22 Jan 2026 15:42:55 +0200 Subject: [PATCH] gpm: use lib.withFeature instead of manual if else --- pkgs/by-name/gp/gpm/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"