git.iko.soy/typeable/nixpkgs
on master help sign in
nedit: Add darwin support
commit3a910eed61a50267fffe8ce2ea0110959a93cbd7 authorJosef Kemetmueller <josef.kemetmueller@aon.at> dateSun 31 Jul 2016, 20:54 (10 years ago) parent3d3d607
1 file changed+5−4
pkgs/applications/editors/nedit/default.nix+5−4
pkgs/applications/editors/nedit/default.nix+5−4
@@ -1,7 +1,5 @@
11{ stdenv, fetchurl, xlibsWrapper, motif, libXpm }:
22
3−assert stdenv.isLinux;
4−
53stdenv.mkDerivation rec {
64 name = "nedit-5.6a";
75
@@ -12,7 +10,9 @@ stdenv.mkDerivation rec {
1210
1311 buildInputs = [ xlibsWrapper motif libXpm ];
1412
15− buildFlags = if stdenv.isLinux then "linux" else "";
13+ buildFlags = if stdenv.isLinux then "linux" else
14+ # the linux config works fine on darwin too!
15+ if stdenv.isDarwin then "linux" else "";
1616
1717 NIX_CFLAGS_COMPILE="-DBUILD_UNTESTED_NEDIT -L${motif}/lib";
1818
@@ -21,7 +21,8 @@ stdenv.mkDerivation rec {
2121 cp -p source/nedit source/nc $out/bin
2222 '';
2323
24− meta = {
24+ meta = with stdenv.lib; {
2525 homepage = http://www.nedit.org;
26+ platforms = with platforms; linux ++ darwin;
2627 };
2728}