nixpkgs/pkgs/tools/misc/ytfzf/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
908 B
Nix
Raw Normal View History

2021-03-07 17:16:55 +01:00
{ lib
, stdenv
, fetchFromGitHub
, makeWrapper
, chafa
, coreutils
2021-03-07 17:16:55 +01:00
, curl
, dmenu
, fzf
, gnused
2021-03-07 17:16:55 +01:00
, jq
, mpv
, ueberzug
, yt-dlp
2021-03-07 17:16:55 +01:00
}:
stdenv.mkDerivation rec {
pname = "ytfzf";
version = "2.2";
2021-03-07 17:16:55 +01:00
src = fetchFromGitHub {
owner = "pystardust";
repo = "ytfzf";
rev = "v${version}";
hash = "sha256-dQq7p/aK9iiyuhuxh5eVXR9GLukwsvosONpQTI0mknw=";
2021-03-07 17:16:55 +01:00
};
nativeBuildInputs = [ makeWrapper ];
dontBuild = true;
installFlags = [ "PREFIX=${placeholder "out"}" "doc" ];
2021-03-07 17:16:55 +01:00
postInstall = ''
wrapProgram "$out/bin/ytfzf" --prefix PATH : ${lib.makeBinPath [
chafa coreutils curl dmenu fzf gnused jq mpv ueberzug yt-dlp
2021-03-07 17:16:55 +01:00
]}
'';
meta = with lib; {
description = "A posix script to find and watch youtube videos from the terminal";
homepage = "https://github.com/pystardust/ytfzf";
license = licenses.gpl3Only;
maintainers = with maintainers; [ dotlambda ];
};
}