2015-09-15 11:13:22 +02:00
|
|
|
{ stdenv, fetchurl, xlibsWrapper, motif, libXpm }:
|
2005-12-03 01:04:13 +01:00
|
|
|
|
2015-03-26 22:09:56 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2017-03-19 23:18:26 +01:00
|
|
|
name = "nedit-${version}";
|
|
|
|
version = "5.7";
|
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";
|
2017-03-19 23:18:26 +01:00
|
|
|
sha256 = "0ym1zhjx9976rf2z5nr7dj4mjkxcicimhs686snjhdcpzxwsrndd";
|
2005-12-03 01:04:13 +01:00
|
|
|
};
|
|
|
|
|
2016-07-28 03:50:29 +02:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2017-03-19 23:18:26 +01:00
|
|
|
nativeBuildInputs = [ xlibsWrapper ];
|
|
|
|
buildInputs = [ motif libXpm ];
|
2005-12-03 01:04:13 +01:00
|
|
|
|
2016-07-31 20:54:10 +02:00
|
|
|
buildFlags = if stdenv.isLinux then "linux" else
|
|
|
|
# the linux config works fine on darwin too!
|
|
|
|
if stdenv.isDarwin 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
|
|
|
|
'';
|
|
|
|
|
2016-07-31 20:54:10 +02:00
|
|
|
meta = with stdenv.lib; {
|
2017-11-10 22:13:27 +01:00
|
|
|
homepage = https://sourceforge.net/projects/nedit;
|
2016-07-31 20:54:10 +02:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2008-01-30 20:49:42 +01:00
|
|
|
};
|
2005-12-03 01:04:13 +01:00
|
|
|
}
|