1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00
nixpkgs/pkgs/applications/editors/nedit/default.nix

31 lines
797 B
Nix
Raw Normal View History

{ stdenv, fetchurl, xlibsWrapper, motif, libXpm }:
2015-03-26 21:09:56 +00:00
stdenv.mkDerivation rec {
2016-07-27 22:38:48 +01:00
name = "nedit-5.6a";
src = fetchurl {
2015-03-26 21:09:56 +00:00
url = "mirror://sourceforge/nedit/nedit-source/${name}-src.tar.gz";
2016-07-27 22:38:48 +01:00
sha256 = "1v8y8vwj3kn91crsddqkz843y6csgw7wkjnd3zdcb4bcrf1pjrsk";
};
2016-07-28 02:50:29 +01:00
hardeningDisable = [ "format" ];
buildInputs = [ xlibsWrapper motif libXpm ];
2016-07-31 19:54:10 +01:00
buildFlags = if stdenv.isLinux then "linux" else
# the linux config works fine on darwin too!
if stdenv.isDarwin then "linux" else "";
2015-03-26 21:09:56 +00:00
NIX_CFLAGS_COMPILE="-DBUILD_UNTESTED_NEDIT -L${motif}/lib";
installPhase = ''
mkdir -p $out/bin
cp -p source/nedit source/nc $out/bin
'';
2016-07-31 19:54:10 +01:00
meta = with stdenv.lib; {
homepage = http://www.nedit.org;
2016-07-31 19:54:10 +01:00
platforms = with platforms; linux ++ darwin;
};
}