mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
ytfzf: 2.0 -> 2.1
https://github.com/pystardust/ytfzf/releases/tag/v2.1
This commit is contained in:
parent
745802b18e
commit
0576218a4e
1 changed files with 4 additions and 9 deletions
|
@ -16,30 +16,25 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "ytfzf";
|
pname = "ytfzf";
|
||||||
version = "2.0";
|
version = "2.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pystardust";
|
owner = "pystardust";
|
||||||
repo = "ytfzf";
|
repo = "ytfzf";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-JuLfFC3oz2FvCaD+XPuL1N8tGKmv4atyZIBeDKWYgT8=";
|
hash = "sha256-NJLXXam7FmBWj9sM+S71e5o5e6OtVpw0m32kUo3Fbec=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=${placeholder "out"}/bin" ];
|
|
||||||
|
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
|
installFlags = [ "PREFIX=${placeholder "out"}" "doc" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram "$out/bin/ytfzf" --prefix PATH : ${lib.makeBinPath [
|
wrapProgram "$out/bin/ytfzf" --prefix PATH : ${lib.makeBinPath [
|
||||||
chafa coreutils curl dmenu fzf gnused jq mpv ueberzug yt-dlp
|
chafa coreutils curl dmenu fzf gnused jq mpv ueberzug yt-dlp
|
||||||
]}
|
]}
|
||||||
|
|
||||||
gzip -c docs/man/ytfzf.1 > docs/man/ytfzf.1.gz
|
|
||||||
gzip -c docs/man/ytfzf.5 > docs/man/ytfzf.5.gz
|
|
||||||
install -Dt "$out/share/man/man1" docs/man/ytfzf.1.gz
|
|
||||||
install -Dt "$out/share/man/man5" docs/man/ytfzf.5.gz
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue