mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
34 lines
874 B
Nix
34 lines
874 B
Nix
{ stdenv, fetchFromGitHub, rtmpdump, php, pythonPackages }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "yle-dl-${version}";
|
|
version = "2.16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aajanki";
|
|
repo = "yle-dl";
|
|
rev = version;
|
|
sha256 = "1ahv7b3r52mvi2b5ji77l62hy543b6pdmq8hnd9xxvnxai463k35";
|
|
};
|
|
|
|
patchPhase = ''
|
|
substituteInPlace yle-dl --replace '/usr/local/share/' "$out/share/"
|
|
'';
|
|
|
|
buildInputs = [ pythonPackages.wrapPython ];
|
|
pythonPath = [ rtmpdump php ] ++ (with pythonPackages; [ pycrypto ]);
|
|
|
|
installPhase = ''
|
|
make install prefix=$out
|
|
wrapPythonPrograms
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Downloads videos from Yle (Finnish Broadcasting Company) servers";
|
|
homepage = https://aajanki.github.io/yle-dl/;
|
|
license = licenses.gpl3;
|
|
maintainers = [ maintainers.dezgeg ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|