1 { lib, stdenv, fetchurl, motif, libXpm, libXt }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/nedit/nedit-source/${pname}-${version}-src.tar.gz";
9 sha256 = "0ym1zhjx9976rf2z5nr7dj4mjkxcicimhs686snjhdcpzxwsrndd";
12 hardeningDisable = [ "format" ];
14 buildInputs = [ motif libXpm libXt ];
16 # the linux config works fine on darwin too!
17 buildFlags = lib.optional (stdenv.isLinux || stdenv.isDarwin) "linux";
19 env.NIX_CFLAGS_COMPILE = "-DBUILD_UNTESTED_NEDIT -L${motif}/lib";
23 cp -p source/nedit source/nc $out/bin
27 homepage = "https://sourceforge.net/projects/nedit";
28 description = "A fast, compact Motif/X11 plain text editor";
29 platforms = with platforms; linux ++ darwin;
30 license = licenses.gpl2;