2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ncurses }:
|
2020-08-25 15:32:11 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "viw";
|
|
|
|
version = "unstable-20171029";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lpan";
|
|
|
|
repo = pname;
|
|
|
|
rev = "2cf317f6d82a6fa58f284074400297b6dc0f44c2";
|
|
|
|
sha256 = "0bnkh57v01zay6ggk0rbddaf75i48h8z06xsv33wfbjldclaljp1";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2021-02-16 12:48:46 +01:00
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
2020-08-25 15:32:11 +02:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-08-25 15:32:11 +02:00
|
|
|
description = "VI Worsened, a fun and light clone of VI";
|
|
|
|
homepage = "https://github.com/lpan/viw";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2023-11-27 02:17:53 +01:00
|
|
|
mainProgram = "viw";
|
2020-08-25 15:32:11 +02:00
|
|
|
};
|
|
|
|
}
|