2019-08-27 07:28:29 +02:00
|
|
|
{ mkDerivation, lib, fetchbzr, python3, rtmpdump }:
|
2015-03-13 21:30:41 +01:00
|
|
|
|
2016-08-14 12:37:20 +02:00
|
|
|
let
|
2019-08-27 07:39:43 +02:00
|
|
|
pythonEnv = python3.withPackages (ps: with ps; [ pyqt5_with_qtmultimedia ]);
|
2019-08-27 07:28:29 +02:00
|
|
|
in mkDerivation {
|
2021-08-04 16:18:00 +02:00
|
|
|
pname = "qarte";
|
|
|
|
version = "4.12.0";
|
|
|
|
|
2015-03-13 21:30:41 +01:00
|
|
|
src = fetchbzr {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "http://bazaar.launchpad.net/~vincent-vandevyvre/qarte/qarte-4";
|
2021-08-01 17:07:34 +02:00
|
|
|
rev = "56";
|
|
|
|
sha256 = "0cq9dg04grl45xw43gi9wsb0vm8c4bcvh813h5lm4ry8b94lfx2i";
|
2015-03-13 21:30:41 +01:00
|
|
|
};
|
|
|
|
|
2019-08-27 07:28:29 +02:00
|
|
|
buildInputs = [ pythonEnv ];
|
2015-03-13 21:30:41 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2019-08-27 07:28:29 +02:00
|
|
|
runHook preInstall
|
2021-08-04 16:18:00 +02:00
|
|
|
|
2015-03-13 21:30:41 +01:00
|
|
|
mkdir -p $out/bin
|
|
|
|
mv qarte $out/bin/
|
|
|
|
substituteInPlace $out/bin/qarte \
|
|
|
|
--replace '/usr/share' "$out/share"
|
|
|
|
|
|
|
|
mkdir -p $out/share/man/man1/
|
|
|
|
mv qarte.1 $out/share/man/man1/
|
|
|
|
|
|
|
|
mkdir -p $out/share/qarte
|
|
|
|
mv * $out/share/qarte/
|
2021-08-04 16:18:00 +02:00
|
|
|
|
2019-08-27 07:28:29 +02:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapQtApp $out/bin/qarte \
|
|
|
|
--prefix PATH : ${rtmpdump}/bin
|
2015-03-13 21:30:41 +01:00
|
|
|
'';
|
|
|
|
|
2021-08-04 16:18:00 +02:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://launchpad.net/qarte";
|
2015-03-13 21:30:41 +01:00
|
|
|
description = "A recorder for Arte TV Guide and Arte Concert";
|
2021-08-04 16:18:00 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
|
|
|
platforms = platforms.linux;
|
2015-03-13 21:30:41 +01:00
|
|
|
};
|
|
|
|
}
|