about summary refs log tree commit diff
path: root/pkgs/applications/editors/edit/default.nix
blob: 7ef81a4ebc04bea22ff77077bf066011d2146880 (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 = "20180228";

  src = fetchgit {
    url = "git://c9x.me/ed.git";
    rev = "77d96145b163d79186c722a7ffccfff57601157c";
    sha256 = "0rsmp7ydmrq3xx5q19566is9a2v2w5yfsphivfc7j4ljp32jlyyy";
  };

  nativeBuildInputs = [
    unzip
    pkg-config
    cwebbin
  ];

  buildInputs = [
    ncurses
    libX11
    libXft
  ];

  preBuild = ''
    ctangle *.w
  '';

  installPhase = ''
    install -Dm755 obj/edit -t $out/bin
  '';

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