diff options
author | Robin Gloster <mail@glob.in> | 2019-10-29 23:21:22 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2019-12-30 12:15:22 +0100 |
commit | 78cf5eda69e9a0e86037ba29fa2fd228ba6066fb (patch) | |
tree | 01955392ade04dfd5bf74843708373b1f61efbd9 /pkgs/applications/editors/nedit | |
parent | 43e91d6f07cc91c5fb214937273a9de791e48881 (diff) |
nedit: *Flags are lists
Diffstat (limited to 'pkgs/applications/editors/nedit')
-rw-r--r-- | pkgs/applications/editors/nedit/default.nix | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pkgs/applications/editors/nedit/default.nix b/pkgs/applications/editors/nedit/default.nix index 4ff8c759a2605..e1d1fa3070a91 100644 --- a/pkgs/applications/editors/nedit/default.nix +++ b/pkgs/applications/editors/nedit/default.nix @@ -3,7 +3,7 @@ stdenv.mkDerivation rec { pname = "nedit"; version = "5.7"; - + src = fetchurl { url = "mirror://sourceforge/nedit/nedit-source/${pname}-${version}-src.tar.gz"; sha256 = "0ym1zhjx9976rf2z5nr7dj4mjkxcicimhs686snjhdcpzxwsrndd"; @@ -14,9 +14,8 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ xlibsWrapper ]; buildInputs = [ motif libXpm ]; - buildFlags = if stdenv.isLinux then "linux" else - # the linux config works fine on darwin too! - if stdenv.isDarwin then "linux" else ""; + # the linux config works fine on darwin too! + buildFlags = stdenv.lib.optional (stdenv.isLinux || stdenv.isDarwin) "linux"; NIX_CFLAGS_COMPILE="-DBUILD_UNTESTED_NEDIT -L${motif}/lib"; |