summary refs log tree commit diff
path: root/pkgs/applications/editors/nedit/default.nix
blob: a4dfc4719dc42d564ad1f71d0722c7625c1b7547 (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, x11, motif, libXpm }:

assert stdenv.isLinux;

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

  buildInputs = [ x11 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;
  };
}