2015-09-15 10:13:22 +01:00
|
|
|
{ stdenv, fetchurl, xlibsWrapper, motif, libXpm }:
|
2005-12-03 00:04:13 +00:00
|
|
|
|
2012-11-29 12:43:37 +00:00
|
|
|
assert stdenv.isLinux;
|
2005-12-03 00:04:13 +00:00
|
|
|
|
2015-03-26 21:09:56 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-07-27 22:38:48 +01:00
|
|
|
name = "nedit-5.6a";
|
2005-12-03 00:04:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-03-26 21:09:56 +00:00
|
|
|
url = "mirror://sourceforge/nedit/nedit-source/${name}-src.tar.gz";
|
2016-07-27 22:38:48 +01:00
|
|
|
sha256 = "1v8y8vwj3kn91crsddqkz843y6csgw7wkjnd3zdcb4bcrf1pjrsk";
|
2005-12-03 00:04:13 +00:00
|
|
|
};
|
|
|
|
|
2015-09-15 10:13:22 +01:00
|
|
|
buildInputs = [ xlibsWrapper motif libXpm ];
|
2005-12-03 00:04:13 +00:00
|
|
|
|
2012-11-29 12:43:37 +00:00
|
|
|
buildFlags = if stdenv.isLinux then "linux" else "";
|
2008-01-30 19:49:42 +00:00
|
|
|
|
2015-03-26 21:09:56 +00: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 19:49:42 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.nedit.org;
|
|
|
|
};
|
2005-12-03 00:04:13 +00:00
|
|
|
}
|