Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
846 B
Nix
44 lines
846 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
makeWrapper,
|
|
openssl,
|
|
ffmpeg,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "yaydl";
|
|
version = "0.17.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dertuxmalwieder";
|
|
repo = "yaydl";
|
|
rev = "release-${version}";
|
|
sha256 = "sha256-bDsI61iWKgXDJ6wnK8a+1HCMlgRM0ol0bWb6a8IiY08=";
|
|
};
|
|
|
|
cargoHash = "sha256-WLWz+xzkxIqlYkNgefyc7c13YjPWpYz9VUlUfWwDN+g=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
makeWrapper
|
|
];
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/yaydl \
|
|
--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://code.rosaelefanten.org/yaydl";
|
|
description = "Yet another youtube down loader";
|
|
license = licenses.cddl;
|
|
maintainers = [ ];
|
|
mainProgram = "yaydl";
|
|
};
|
|
}
|