2022-11-02 22:02:43 +00:00
|
|
|
{ lib, stdenv, fetchurl, motif, libXpm, libXt }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nedit";
|
|
|
|
version = "5.7";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/nedit/nedit-source/${pname}-${version}-src.tar.gz";
|
|
|
|
sha256 = "0ym1zhjx9976rf2z5nr7dj4mjkxcicimhs686snjhdcpzxwsrndd";
|
|
|
|
};
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
buildInputs = [ motif libXpm libXt ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# the linux config works fine on darwin too!
|
2021-01-17 00:15:33 +00:00
|
|
|
buildFlags = lib.optional (stdenv.isLinux || stdenv.isDarwin) "linux";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-DBUILD_UNTESTED_NEDIT -L${motif}/lib";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -p source/nedit source/nc $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/nedit";
|
|
|
|
description = "A fast, compact Motif/X11 plain text editor";
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|