blob: a2a7c5d09365c9f8fccc8fa0c520ae64a7ffd226 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, pkg-config
, makeWrapper
, openssl
, ffmpeg
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "yaydl";
version = "0.15.5";
src = fetchFromGitHub {
owner = "dertuxmalwieder";
repo = pname;
rev = "release-${version}";
sha256 = "sha256-/GoRMdbTaRDZJaVXdsN+YKpWCgecOhqhRf3iaL0rmE8=";
};
cargoHash = "sha256-f81z4ssKyGheuI2WWweFBW8AoafsVgPkX1lYCHDSaaM=";
nativeBuildInputs = [
pkg-config
makeWrapper
];
buildInputs = [ openssl ]
++ lib.optional stdenv.hostPlatform.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 = [ ];
mainProgram = "yaydl";
};
}
|