4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
31 lines
779 B
Nix
31 lines
779 B
Nix
{ lib, 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 lib; {
|
|
description = "VI Worsened, a fun and light clone of VI";
|
|
homepage = "https://github.com/lpan/viw";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
};
|
|
}
|