nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 ncurses,
6}:
7
8stdenv.mkDerivation {
9 pname = "viw";
10 version = "0-unstable-2017-10-29";
11
12 src = fetchFromGitHub {
13 owner = "lpan";
14 repo = "viw";
15 rev = "2cf317f6d82a6fa58f284074400297b6dc0f44c2";
16 sha256 = "0bnkh57v01zay6ggk0rbddaf75i48h8z06xsv33wfbjldclaljp1";
17 };
18
19 buildInputs = [ ncurses ];
20
21 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
22 checkFlags = [
23 "test-command"
24 "test-buffer"
25 "test-state"
26 ];
27
28 installPhase = ''
29 install -Dm 755 -t $out/bin viw
30 install -Dm 644 -t $out/share/doc/viw README.md
31 '';
32
33 meta = with lib; {
34 description = "VI Worsened, a fun and light clone of VI";
35 homepage = "https://github.com/lpan/viw";
36 license = licenses.gpl3Only;
37 maintainers = with maintainers; [ ];
38 mainProgram = "viw";
39 };
40}