aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/editors/viw/default.nix
blob: 4025bf252b309b46b5c5d8d07625b2b09972f500 (plain)
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
{ 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 ];
  };
}