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