mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 06:23:36 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
32 lines
827 B
Nix
32 lines
827 B
Nix
{ lib, buildGoModule, fetchFromGitHub, makeBinaryWrapper, ffmpeg-headless }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ytarchive";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Kethsar";
|
|
repo = "ytarchive";
|
|
rev = "v${version}";
|
|
hash = "sha256-Y1frd7iJJuNFvLL/C1Y+RrqYC/1LF7P3J9rkPAThp9c=";
|
|
};
|
|
|
|
vendorHash = "sha256-hVAiWJKdDQB+6UlARFdjVATCMiGrEK2US62KAxCquvU=";
|
|
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
|
|
|
ldflags = [ "-s" "-w" "-X main.Commit=-${src.rev}" ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/ytarchive --prefix PATH : ${lib.makeBinPath [ ffmpeg-headless ]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/Kethsar/ytarchive";
|
|
description = "Garbage Youtube livestream downloader";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
mainProgram = "ytarchive";
|
|
};
|
|
}
|