@@ -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}