nedit: *Flags are lists

gstqt5
Robin Gloster 2019-10-29 23:21:22 +01:00 committed by Jan Tojnar
parent 43e91d6f07
commit 78cf5eda69
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
1 changed files with 3 additions and 4 deletions

View File

@ -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";