2015-09-15 11:13:22 +02:00
|
|
|
{ stdenv, fetchurl, xlibsWrapper, motif, libXpm }:
|
2005-12-03 01:04:13 +01:00
|
|
|
|
2012-11-29 13:43:37 +01:00
|
|
|
assert stdenv.isLinux;
|
2005-12-03 01:04:13 +01:00
|
|
|
|
2015-03-26 22:09:56 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "nedit-5.6";
|
2005-12-03 01:04:13 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-03-26 22:09:56 +01:00
|
|
|
url = "mirror://sourceforge/nedit/nedit-source/${name}-src.tar.gz";
|
|
|
|
sha256 = "023hwpqc57mnzvg6p7jda6193afgjzxzajlhwhqvk3jq2kdv6zna";
|
2005-12-03 01:04:13 +01:00
|
|
|
};
|
|
|
|
|
2015-09-15 11:13:22 +02:00
|
|
|
buildInputs = [ xlibsWrapper motif libXpm ];
|
2005-12-03 01:04:13 +01:00
|
|
|
|
2012-11-29 13:43:37 +01:00
|
|
|
buildFlags = if stdenv.isLinux then "linux" else "";
|
2008-01-30 20:49:42 +01:00
|
|
|
|
2015-03-26 22:09:56 +01:00
|
|
|
NIX_CFLAGS_COMPILE="-DBUILD_UNTESTED_NEDIT -L${motif}/lib";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -p source/nedit source/nc $out/bin
|
|
|
|
'';
|
|
|
|
|
2008-01-30 20:49:42 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.nedit.org;
|
|
|
|
};
|
2005-12-03 01:04:13 +01:00
|
|
|
}
|