Merge pull request #261349 from marsam/update-ytarchive

ytarchive: unstable-2023-02-21 -> 0.4.0
This commit is contained in:
Mario Rodas 2023-10-16 08:14:20 -05:00 committed by GitHub
commit 26a0a1b6ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,14 @@
{ lib, buildGoModule, fetchFromGitHub, makeBinaryWrapper, ffmpeg }:
{ lib, buildGoModule, fetchFromGitHub, makeBinaryWrapper, ffmpeg-headless }:
buildGoModule rec {
pname = "ytarchive";
version = "unstable-2023-02-21";
version = "0.4.0";
src = fetchFromGitHub {
owner = "Kethsar";
repo = "ytarchive";
rev = "90aaf17b5e86eec52a95752e3c2dba4f54ee1068";
hash = "sha256-JRjQRbMqtd04/aO6NkInoDqfOrHnDrXj4C4/URiU6yo=";
rev = "v${version}";
hash = "sha256-mQgpwuTIEHeDv/PzBHpK1sraxFj8Ef3y8vN5bLw5E94=";
};
vendorHash = "sha256-sjwQ/zEYJRkeWUDB7TzV8z+kET8lVRnQkXYbZbcUeHY=";
@ -18,7 +18,7 @@ buildGoModule rec {
ldflags = [ "-s" "-w" "-X main.Commit=-${src.rev}" ];
postInstall = ''
wrapProgram $out/bin/ytarchive --prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
wrapProgram $out/bin/ytarchive --prefix PATH : ${lib.makeBinPath [ ffmpeg-headless ]}
'';
meta = with lib; {