diff options
author | Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> | 2015-11-21 23:44:32 +0200 |
---|---|---|
committer | Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> | 2015-12-28 06:05:01 +0200 |
commit | 5120601c28977ac8681df1192b2008e681e21a05 (patch) | |
tree | ee93df08dcc7af1bd3f1f8234fbe2f661af488d8 /pkgs/tools/misc/yle-dl | |
parent | 93d8671e2c6d1d25f126ed30e5e6f16764330119 (diff) |
yle-dl: init at 2.9.1
Diffstat (limited to 'pkgs/tools/misc/yle-dl')
-rw-r--r-- | pkgs/tools/misc/yle-dl/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/tools/misc/yle-dl/default.nix b/pkgs/tools/misc/yle-dl/default.nix new file mode 100644 index 0000000000000..c6efac3ffe600 --- /dev/null +++ b/pkgs/tools/misc/yle-dl/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchFromGitHub, rtmpdump, php, pythonPackages }: + +stdenv.mkDerivation rec { + name = "yle-dl-${version}"; + version = "2.9.1"; + + src = fetchFromGitHub { + owner = "aajanki"; + repo = "yle-dl"; + rev = version; + sha256 = "1irpcp9iw2cw85sj1kzndmrw8350p9q7cfghjx2xkh2czk9k7whq"; + }; + + patchPhase = '' + substituteInPlace yle-dl --replace '/usr/local/share/' "$out/share/" + + # HACK: work around https://github.com/NixOS/nixpkgs/issues/9593 + substituteInPlace yle-dl --replace '/usr/bin/env python2' '/usr/bin/env python' + ''; + + 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; + }; +} |