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
32 lines
978 B
Nix
32 lines
978 B
Nix
{ lib, stdenv, fetchFromGitHub, kakoune-unwrapped, plan9port, ... }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "kak-plumb";
|
|
version = "0.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eraserhd";
|
|
repo = "kak-plumb";
|
|
rev = "v${version}";
|
|
sha256 = "1rz6pr786slnf1a78m3sj09axr4d2lb5rg7sfa4mfg1zcjh06ps6";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin $out/share/kak/autoload/plugins/
|
|
substitute rc/plumb.kak $out/share/kak/autoload/plugins/plumb.kak \
|
|
--replace '9 plumb' '${plan9port}/bin/9 plumb'
|
|
substitute edit-client $out/bin/edit-client \
|
|
--replace '9 9p' '${plan9port}/bin/9 9p' \
|
|
--replace 'kak -p' '${kakoune-unwrapped}/bin/kak -p'
|
|
chmod +x $out/bin/edit-client
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Kakoune integration with the Plan 9 plumber";
|
|
homepage = "https://github.com/eraserhd/kak-plumb";
|
|
license = licenses.unlicense;
|
|
maintainers = with maintainers; [ eraserhd ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|