about summary refs log tree commit diff
path: root/pkgs/applications/editors/nedit/default.nix
blob: 14220956698c47b18575f7133b4020651d0a9f05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchurl, xlibsWrapper, motif, libXpm }:

assert stdenv.isLinux;

stdenv.mkDerivation rec {
  name = "nedit-5.6a";
  
  src = fetchurl {
    url = "mirror://sourceforge/nedit/nedit-source/${name}-src.tar.gz";
    sha256 = "1v8y8vwj3kn91crsddqkz843y6csgw7wkjnd3zdcb4bcrf1pjrsk";
  };

  buildInputs = [ xlibsWrapper motif libXpm ];

  buildFlags = if stdenv.isLinux then "linux" else "";

  NIX_CFLAGS_COMPILE="-DBUILD_UNTESTED_NEDIT -L${motif}/lib";

  installPhase = ''
    mkdir -p $out/bin
    cp -p source/nedit source/nc $out/bin
  '';

  meta = {
    homepage = http://www.nedit.org;
  };
}