summary refs log tree commit diff
path: root/pkgs/applications/editors/edit/default.nix
blob: 25e620c51e4e7a4b1a9a920da991865b0da438e5 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib, stdenv, fetchgit, unzip, pkg-config, ncurses, libX11, libXft, cwebbin }:

stdenv.mkDerivation {
  pname = "edit-nightly";
  version = "20160425";

  src = fetchgit {
    url = "git://c9x.me/ed.git";
    rev = "323d49b68c5e804ed3b8cada0e2274f1589b3484";
    sha256 = "0wv8i3ii7cd9bqhjpahwp2g5fcmyk365nc7ncmvl79cxbz3f7y8v";
  };

  buildInputs = [
     unzip
     pkg-config
     ncurses
     libX11
     libXft
     cwebbin
  ];

  buildPhase = ''
    ctangle *.w
    make
  '';

  installPhase = ''
    mkdir -p $out/bin/
    cp obj/edit $out/bin/edit
  '';

  meta = with lib; {
    description = "A relaxing mix of Vi and ACME";
    homepage = "http://c9x.me/edit";
    license = licenses.publicDomain;
    maintainers = [ maintainers.vrthra ];
    platforms = platforms.linux;
  };
}