2015-09-15 09:13:22 +00:00
|
|
|
{ stdenv, fetchurl, xlibsWrapper, motif, libXpm }:
|
2005-12-03 00:04:13 +00:00
|
|
|
|
2015-03-26 21:09:56 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "nedit";
|
2017-03-19 22:18:26 +00:00
|
|
|
version = "5.7";
|
2005-12-03 00:04:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://sourceforge/nedit/nedit-source/${pname}-${version}-src.tar.gz";
|
2017-03-19 22:18:26 +00:00
|
|
|
sha256 = "0ym1zhjx9976rf2z5nr7dj4mjkxcicimhs686snjhdcpzxwsrndd";
|
2005-12-03 00:04:13 +00:00
|
|
|
};
|
|
|
|
|
2016-07-28 01:50:29 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2017-03-19 22:18:26 +00:00
|
|
|
nativeBuildInputs = [ xlibsWrapper ];
|
|
|
|
buildInputs = [ motif libXpm ];
|
2005-12-03 00:04:13 +00:00
|
|
|
|
2016-07-31 18:54:10 +00: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 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
|
|
|
|
'';
|
|
|
|
|
2016-07-31 18:54:10 +00:00
|
|
|
meta = with stdenv.lib; {
|
2019-10-08 18:54:38 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/nedit";
|
|
|
|
description = "A fast, compact Motif/X11 plain text editor";
|
2016-07-31 18:54:10 +00:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2018-08-06 10:38:10 +00:00
|
|
|
license = licenses.gpl2;
|
2008-01-30 19:49:42 +00:00
|
|
|
};
|
2005-12-03 00:04:13 +00:00
|
|
|
}
|