depot/third_party/nixpkgs/pkgs/applications/editors/nedit/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

32 lines
903 B
Nix

{ lib, stdenv, fetchurl, motif, libXpm, libXt }:
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" ];
buildInputs = [ motif libXpm libXt ];
# the linux config works fine on darwin too!
buildFlags = lib.optional (stdenv.hostPlatform.isLinux || stdenv.hostPlatform.isDarwin) "linux";
env.NIX_CFLAGS_COMPILE = "-DBUILD_UNTESTED_NEDIT -L${motif}/lib";
installPhase = ''
mkdir -p $out/bin
cp -p source/nedit source/nc $out/bin
'';
meta = with lib; {
homepage = "https://sourceforge.net/projects/nedit";
description = "Fast, compact Motif/X11 plain text editor";
platforms = with platforms; linux ++ darwin;
license = licenses.gpl2;
};
}