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

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

32 lines
846 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, makeBinaryWrapper, ffmpeg-headless }:
2021-12-18 05:20:00 +01:00
buildGoModule rec {
pname = "ytarchive";
version = "0.4.0";
2021-12-18 05:20:00 +01:00
src = fetchFromGitHub {
owner = "Kethsar";
repo = "ytarchive";
rev = "v${version}";
hash = "sha256-mQgpwuTIEHeDv/PzBHpK1sraxFj8Ef3y8vN5bLw5E94=";
2021-12-18 05:20:00 +01:00
};
2023-02-23 05:20:00 +01:00
vendorHash = "sha256-sjwQ/zEYJRkeWUDB7TzV8z+kET8lVRnQkXYbZbcUeHY=";
2021-12-18 05:20:00 +01:00
2022-07-09 06:20:00 +02:00
nativeBuildInputs = [ makeBinaryWrapper ];
2022-05-01 06:20:00 +02:00
2022-07-09 06:20:00 +02:00
ldflags = [ "-s" "-w" "-X main.Commit=-${src.rev}" ];
2021-12-18 05:20:00 +01:00
2022-05-01 06:20:00 +02:00
postInstall = ''
wrapProgram $out/bin/ytarchive --prefix PATH : ${lib.makeBinPath [ ffmpeg-headless ]}
2022-05-01 06:20:00 +02:00
'';
2021-12-18 05:20:00 +01:00
meta = with lib; {
homepage = "https://github.com/Kethsar/ytarchive";
description = "Garbage Youtube livestream downloader";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
2023-11-27 02:17:53 +01:00
mainProgram = "ytarchive";
2021-12-18 05:20:00 +01:00
};
}