core/pkgs/by-name/ba/bash/fzf-obc/default.nix

32 lines
888 B
Nix
Raw Normal View History

2024-05-02 00:46:19 +00:00
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "fzf-obc";
version = "1.3.0";
src = fetchFromGitHub {
owner = "rockandska";
repo = pname;
rev = version;
sha256 = "sha256-KIAlDpt1Udl+RLp3728utgQ9FCjZz/OyoG92MOJmgPI=";
};
dontBuild = true;
installPhase = ''
mkdir -p $out/share/fzf-obc/{bin,lib/fzf-obc,plugins/{kill,gradle}}
install -m644 bin/* $out/share/fzf-obc/bin
install -m644 lib/fzf-obc/* $out/share/fzf-obc/lib/fzf-obc
install -m644 plugins/kill/* $out/share/fzf-obc/plugins/kill
install -m644 plugins/gradle/* $out/share/fzf-obc/plugins/gradle
'';
meta = with lib; {
homepage = "https://fzf-obc.readthedocs.io";
2024-05-13 21:24:10 +00:00
description =
"Completion script adding fzf over all know bash completion functions";
2024-05-02 00:46:19 +00:00
license = licenses.unfree;
maintainers = with maintainers; [ loicreynier ];
};
}