From 0335b240b60eb45448a4aac2fa50488aeae99904 Mon Sep 17 00:00:00 2001 From: xeals Date: Sat, 26 Jun 2021 21:07:26 +1000 Subject: [PATCH] ytarchive: init at 0.2.2 --- pkgs/tools/misc/ytarchive/default.nix | 36 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/tools/misc/ytarchive/default.nix diff --git a/pkgs/tools/misc/ytarchive/default.nix b/pkgs/tools/misc/ytarchive/default.nix new file mode 100644 index 0000000..03bd65f --- /dev/null +++ b/pkgs/tools/misc/ytarchive/default.nix @@ -0,0 +1,36 @@ +{ stdenv +, lib +, fetchFromGitHub + +, python3 +, ffmpeg }: + +stdenv.mkDerivation rec { + pname = "ytarchive"; + version = "0.2.2"; + + src = fetchFromGitHub { + owner = "Kethsar"; + repo = "ytarchive"; + rev = "v${version}"; + sha256 = "xT45FF0ztWQXzQgYztl2YKiI2iGJfnCXgCMw8gOmxzM="; + }; + + propagatedBuildInputs = [ + python3 + ffmpeg + ]; + + phases = [ "unpackPhase" "installPhase" "fixupPhase" ]; + + installPhase = '' + install -Dm00755 ytarchive.py $out/bin/ytarchive + ''; + + meta = with lib; { + description = "Garbage Youtube livestream downloader"; + homepage = "https://github.com/Kethsar/ytarchive"; + license = licenses.mit; + platforms = python3.meta.platforms; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1ec2bc4..270260a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -125,5 +125,7 @@ rec { python2Packages = pkgs.python2Packages // python2Packages.overlay; }; + ytarchive = pkgs.callPackage ../tools/misc/ytarchive { }; + zsh-z = pkgs.callPackage ../shells/zsh/zsh-z { }; }