diff options
author | Felix Buehler <account@buehler.rocks> | 2023-02-14 19:11:59 +0100 |
---|---|---|
committer | Felix Buehler <account@buehler.rocks> | 2023-02-14 19:11:59 +0100 |
commit | bc3d5934d7f276a21537b40159491257ee163d94 (patch) | |
tree | 53b1d9bd9cb148a0ab34f2fd9e1d94802dde639e /pkgs/games/xjump | |
parent | 3bee4ab8db244db328b41ae5f4fbce19b658f1be (diff) |
treewide: use lib.optionals
Diffstat (limited to 'pkgs/games/xjump')
-rw-r--r-- | pkgs/games/xjump/default.nix | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/pkgs/games/xjump/default.nix b/pkgs/games/xjump/default.nix index 3c13fc1a9b782..2c56e0bba4f66 100644 --- a/pkgs/games/xjump/default.nix +++ b/pkgs/games/xjump/default.nix @@ -12,12 +12,8 @@ stdenv.mkDerivation { nativeBuildInputs = [ autoconf automake ]; buildInputs = [ libX11 libXt libXpm libXaw ]; preConfigure = "autoreconf --install"; - patches = if stdenv.buildPlatform.isDarwin then [ ./darwin.patch ] else []; - configureFlags = - if localStateDir != null then - ["--localstatedir=${localStateDir}"] - else - []; + patches = lib.optionals stdenv.buildPlatform.isDarwin [ ./darwin.patch ]; + configureFlags = lib.optionals (localStateDir != null) ["--localstatedir=${localStateDir}"]; meta = with lib; { description = "The falling tower game"; |