mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-17 18:34:38 +00:00
yaydl: init at 0.13.0
This commit is contained in:
parent
85b47261a1
commit
dc7641c3fd
44
pkgs/tools/video/yaydl/default.nix
Normal file
44
pkgs/tools/video/yaydl/default.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{ 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; [ earthengine ];
|
||||
};
|
||||
}
|
@ -14430,6 +14430,10 @@ with pkgs;
|
||||
|
||||
yj = callPackage ../development/tools/yj { };
|
||||
|
||||
yaydl = callPackage ../tools/video/yaydl {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
zarchive = callPackage ../tools/archivers/zarchive { };
|
||||
|
||||
zprint = callPackage ../development/tools/zprint { };
|
||||
|
Loading…
Reference in New Issue
Block a user