diff options
author | Josef Kemetmueller <josef.kemetmueller@aon.at> | 2016-07-31 20:54:10 +0200 |
---|---|---|
committer | Josef Kemetmueller <josef.kemetmueller@aon.at> | 2016-07-31 20:57:14 +0200 |
commit | 3a910eed61a50267fffe8ce2ea0110959a93cbd7 (patch) | |
tree | d1d9c9d3fff642da71b34532222f8a8f28108dd2 /pkgs/applications/editors/nedit | |
parent | 3d3d607408fb2a6a134c5d3cfcb945b094fab71d (diff) | |
download | nixpkgs-3a910eed61a50267fffe8ce2ea0110959a93cbd7.tar nixpkgs-3a910eed61a50267fffe8ce2ea0110959a93cbd7.tar.gz nixpkgs-3a910eed61a50267fffe8ce2ea0110959a93cbd7.tar.bz2 nixpkgs-3a910eed61a50267fffe8ce2ea0110959a93cbd7.tar.lz nixpkgs-3a910eed61a50267fffe8ce2ea0110959a93cbd7.tar.xz nixpkgs-3a910eed61a50267fffe8ce2ea0110959a93cbd7.tar.zst nixpkgs-3a910eed61a50267fffe8ce2ea0110959a93cbd7.zip |
nedit: Add darwin support
Diffstat (limited to 'pkgs/applications/editors/nedit')
-rw-r--r-- | pkgs/applications/editors/nedit/default.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/applications/editors/nedit/default.nix b/pkgs/applications/editors/nedit/default.nix index 14220956698..8a478b27593 100644 --- a/pkgs/applications/editors/nedit/default.nix +++ b/pkgs/applications/editors/nedit/default.nix @@ -1,7 +1,5 @@ { stdenv, fetchurl, xlibsWrapper, motif, libXpm }: -assert stdenv.isLinux; - stdenv.mkDerivation rec { name = "nedit-5.6a"; @@ -12,7 +10,9 @@ stdenv.mkDerivation rec { buildInputs = [ xlibsWrapper motif libXpm ]; - buildFlags = if stdenv.isLinux then "linux" else ""; + buildFlags = if stdenv.isLinux then "linux" else + # the linux config works fine on darwin too! + if stdenv.isDarwin then "linux" else ""; NIX_CFLAGS_COMPILE="-DBUILD_UNTESTED_NEDIT -L${motif}/lib"; @@ -21,7 +21,8 @@ stdenv.mkDerivation rec { cp -p source/nedit source/nc $out/bin ''; - meta = { + meta = with stdenv.lib; { homepage = http://www.nedit.org; + platforms = with platforms; linux ++ darwin; }; } |