mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
46 lines
917 B
Nix
46 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";
|
|
};
|
|
}
|