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!
|
2024-09-26 11:04:55 +00:00
|
|
|
buildFlags = lib.optional (stdenv.hostPlatform.isLinux || stdenv.hostPlatform.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";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Fast, compact Motif/X11 plain text editor";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|