diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-03-07 17:16:55 +0100 |
---|---|---|
committer | Robert Schütz <dev@schuetz-co.de> | 2021-03-08 21:33:55 +0100 |
commit | 9d06a6c117a7cd5773a5581594f13d8a85fedaf9 (patch) | |
tree | 6169557548c2ea9bbd8a8b11dbe6906fb4859de9 /pkgs/tools/misc/ytfzf | |
parent | 1aae00a12f66355ec02199a37da5004f50dd0e7a (diff) |
ytfzf: init at 1.0.0
Diffstat (limited to 'pkgs/tools/misc/ytfzf')
-rw-r--r-- | pkgs/tools/misc/ytfzf/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/tools/misc/ytfzf/default.nix b/pkgs/tools/misc/ytfzf/default.nix new file mode 100644 index 0000000000000..bf64e858d2b7d --- /dev/null +++ b/pkgs/tools/misc/ytfzf/default.nix @@ -0,0 +1,47 @@ +{ lib +, stdenv +, fetchFromGitHub +, makeWrapper +, curl +, dmenu +, fzf +, jq +, mpv +, youtube-dl +}: + +stdenv.mkDerivation rec { + pname = "ytfzf"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "pystardust"; + repo = "ytfzf"; + rev = "v${version}"; + sha256 = "09znixn8mpkxipv2x3nrfxr2i8g7y58v25qssqf092j9lh85sf9h"; + }; + + nativeBuildInputs = [ makeWrapper ]; + + makeFlags = [ "PREFIX=${placeholder "out"}" ]; + + dontBuild = true; + + # remove after next update + preInstall = '' + mkdir -p "$out/bin" + ''; + + postInstall = '' + wrapProgram "$out/bin/ytfzf" --prefix PATH : ${lib.makeBinPath [ + curl dmenu fzf jq mpv youtube-dl + ]} + ''; + + 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 ]; + }; +} |