depot/third_party/nixpkgs/pkgs/tools/video/yaydl/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

45 lines
919 B
Nix

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, pkg-config
, makeWrapper
, openssl
, ffmpeg
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "yaydl";
version = "0.13.0";
src = fetchFromGitHub {
owner = "dertuxmalwieder";
repo = pname;
rev = "release-${version}";
sha256 = "sha256-JwyWWqbUNZyH6gymeScb9tMZoPvn/Igz9iW2pp0XvEI=";
};
cargoSha256 = "sha256-jmqO0UvU6s+E5r6VFFjOvSe8oiLiTG5rPNHzoHVftWo=";
nativeBuildInputs = [
pkg-config
makeWrapper
];
buildInputs = [ openssl ]
++ lib.optional stdenv.isDarwin Security;
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 = with maintainers; [];
mainProgram = "yaydl";
};
}