2016-08-24 17:16:30 +00:00
|
|
|
{ stdenv, fetchbzr, python3Packages, rtmpdump, makeWrapper }:
|
2015-03-13 20:30:41 +00:00
|
|
|
|
2016-08-14 10:37:20 +00:00
|
|
|
let
|
2016-08-24 17:16:30 +00:00
|
|
|
inherit (python3Packages) python pyqt5 sip;
|
2016-08-14 10:37:20 +00:00
|
|
|
in stdenv.mkDerivation {
|
2016-08-24 17:16:30 +00:00
|
|
|
name = "qarte-3.2.0";
|
2015-03-13 20:30:41 +00:00
|
|
|
src = fetchbzr {
|
2016-08-24 17:16:30 +00:00
|
|
|
url = http://bazaar.launchpad.net/~vincent-vandevyvre/qarte/qarte-3;
|
|
|
|
rev = "146";
|
|
|
|
sha256 = "0dvl38dknmnj2p4yr25p88kw3mh502c6qdp2bd43bhd2sqc3b0v0";
|
2015-03-13 20:30:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mv qarte $out/bin/
|
|
|
|
substituteInPlace $out/bin/qarte \
|
2016-08-24 17:16:30 +00:00
|
|
|
--replace '/usr/bin/python3' "${python.interpreter}" \
|
2015-03-13 20:30:41 +00:00
|
|
|
--replace '/usr/share' "$out/share"
|
|
|
|
wrapProgram $out/bin/qarte \
|
2016-08-24 17:16:30 +00:00
|
|
|
--prefix PYTHONPATH : "${pyqt5}/lib/${python.libPrefix}/site-packages:${sip}/lib/${python.libPrefix}/site-packages" \
|
2015-03-13 20:30:41 +00:00
|
|
|
--prefix PATH : "${rtmpdump}/bin"
|
|
|
|
|
|
|
|
mkdir -p $out/share/man/man1/
|
|
|
|
mv qarte.1 $out/share/man/man1/
|
|
|
|
|
|
|
|
mkdir -p $out/share/qarte
|
|
|
|
mv * $out/share/qarte/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://launchpad.net/qarte;
|
|
|
|
description = "A recorder for Arte TV Guide and Arte Concert";
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|