about summary refs log tree commit diff
path: root/pkgs/applications/editors/viw
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2020-08-25 10:32:11 -0300
committerDaniƫl de Kok <me@danieldk.eu>2020-08-26 07:54:46 +0200
commit1b4c4193c6e2fd5384ba7362c185c15e5e43e3d1 (patch)
tree717f1d3c199945a10b1929f1015866b86fa518a0 /pkgs/applications/editors/viw
parent692a12e6eeabc295de82c275c8444aaf4a63ddb3 (diff)
viw: init at 20171029
Diffstat (limited to 'pkgs/applications/editors/viw')
-rw-r--r--pkgs/applications/editors/viw/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/editors/viw/default.nix b/pkgs/applications/editors/viw/default.nix
new file mode 100644
index 0000000000000..4025bf252b309
--- /dev/null
+++ b/pkgs/applications/editors/viw/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchFromGitHub, ncurses }:
+
+stdenv.mkDerivation rec {
+  pname = "viw";
+  version = "unstable-20171029";
+
+  src = fetchFromGitHub {
+    owner = "lpan";
+    repo = pname;
+    rev = "2cf317f6d82a6fa58f284074400297b6dc0f44c2";
+    sha256 = "0bnkh57v01zay6ggk0rbddaf75i48h8z06xsv33wfbjldclaljp1";
+  };
+
+  buildInputs = [ ncurses ];
+
+  makeFlags = [ "CC=cc" ];
+  checkFlags = [ "test-command" "test-buffer" "test-state" ];
+
+  installPhase = ''
+    install -Dm 755 -t $out/bin viw
+    install -Dm 644 -t $out/share/doc/${pname} README.md
+  '';
+
+  meta = with stdenv.lib; {
+    description = "VI Worsened, a fun and light clone of VI";
+    homepage = "https://github.com/lpan/viw";
+    license = licenses.gpl3Only;
+    maintainers = with maintainers; [ AndersonTorres ];
+  };
+}