2021-01-11 10:54:33 +03:00
|
|
|
{ lib, stdenv, fetchurl, xlibsWrapper, motif, libXpm }:
|
2005-12-03 03:04:13 +03:00
|
|
|
|
2015-03-27 00:09:56 +03:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "nedit";
|
2017-03-20 01:18:26 +03:00
|
|
|
version = "5.7";
|
2019-10-30 01:21:22 +03:00
|
|
|
|
2005-12-03 03:04:13 +03:00
|
|
|
src = fetchurl {
|
2019-08-15 15:41:18 +03:00
|
|
|
url = "mirror://sourceforge/nedit/nedit-source/${pname}-${version}-src.tar.gz";
|
2017-03-20 01:18:26 +03:00
|
|
|
sha256 = "0ym1zhjx9976rf2z5nr7dj4mjkxcicimhs686snjhdcpzxwsrndd";
|
2005-12-03 03:04:13 +03:00
|
|
|
};
|
|
|
|
|
2016-07-28 04:50:29 +03:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2017-03-20 01:18:26 +03:00
|
|
|
nativeBuildInputs = [ xlibsWrapper ];
|
|
|
|
buildInputs = [ motif libXpm ];
|
2005-12-03 03:04:13 +03:00
|
|
|
|
2019-10-30 01:21:22 +03:00
|
|
|
# the linux config works fine on darwin too!
|
|
|
|
buildFlags = stdenv.lib.optional (stdenv.isLinux || stdenv.isDarwin) "linux";
|
2008-01-30 22:49:42 +03:00
|
|
|
|
2015-03-27 00:09:56 +03:00
|
|
|
NIX_CFLAGS_COMPILE="-DBUILD_UNTESTED_NEDIT -L${motif}/lib";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -p source/nedit source/nc $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2019-10-08 21:54:38 +03:00
|
|
|
homepage = "https://sourceforge.net/projects/nedit";
|
|
|
|
description = "A fast, compact Motif/X11 plain text editor";
|
2016-07-31 21:54:10 +03:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2018-08-06 13:38:10 +03:00
|
|
|
license = licenses.gpl2;
|
2008-01-30 22:49:42 +03:00
|
|
|
};
|
2005-12-03 03:04:13 +03:00
|
|
|
}
|