diff --git a/pkgs/by-name/tw/twitch-hls-client/package.nix b/pkgs/by-name/tw/twitch-hls-client/package.nix new file mode 100644 index 000000000000..0bdc151acd48 --- /dev/null +++ b/pkgs/by-name/tw/twitch-hls-client/package.nix @@ -0,0 +1,35 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + stdenv, + darwin, +}: + +rustPlatform.buildRustPackage rec { + pname = "twitch-hls-client"; + version = "1.3.13"; + + src = fetchFromGitHub { + owner = "2bc4"; + repo = "twitch-hls-client"; + rev = version; + hash = "sha256-H446qXFwRGippLMZemkW8sVhTV3YGpKmAvD8QBamAlo="; + }; + + cargoHash = "sha256-PK6x7xRUSbOFEAhw22T/zbMlqcS5ZQd2bpMp9OFIiUc="; + + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Security + ]; + + meta = with lib; { + description = "Minimal CLI client for watching/recording Twitch streams"; + homepage = "https://github.com/2bc4/twitch-hls-client.git"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ lenivaya ]; + mainProgram = "twitch-hls-client"; + sourceProvenance = with lib.sourceTypes; [ fromSource ]; + platforms = platforms.all; + }; +}