depot/third_party/nixpkgs/pkgs/tools/video/yaydl/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

45 lines
917 B
Nix

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, pkg-config
, makeWrapper
, openssl
, ffmpeg
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "yaydl";
version = "0.14.0";
src = fetchFromGitHub {
owner = "dertuxmalwieder";
repo = pname;
rev = "release-${version}";
sha256 = "sha256-r0Z/dihDaiW/lBLMftLtzLELpKT2twqru1xxI9LnjU8=";
};
cargoHash = "sha256-FkOiMeNwYj++gZ1Kl4RZHmsRDVMZQBEYtRpogK6XSFE=";
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";
};
}