about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/edit
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/editors/edit')
-rw-r--r--nixpkgs/pkgs/applications/editors/edit/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/editors/edit/default.nix b/nixpkgs/pkgs/applications/editors/edit/default.nix
new file mode 100644
index 000000000000..7ef81a4ebc04
--- /dev/null
+++ b/nixpkgs/pkgs/applications/editors/edit/default.nix
@@ -0,0 +1,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;
+  };
+}