2015-11-21 21:44:32 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rtmpdump, php, pythonPackages }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "yle-dl-${version}";
|
2016-09-21 17:39:59 +01:00
|
|
|
version = "2.11";
|
2015-11-21 21:44:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aajanki";
|
|
|
|
repo = "yle-dl";
|
|
|
|
rev = version;
|
2016-09-21 17:39:59 +01:00
|
|
|
sha256 = "1fa2a25j3wwk3m6q1alilklwhqf337ch8rj6bwricc5zqb58qivc";
|
2015-11-21 21:44:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|