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 {
|
2019-05-23 08:06:27 +02:00
|
|
|
name = "qarte-4.6.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";
|
2019-05-23 08:06:27 +02:00
|
|
|
rev = "22";
|
|
|
|
sha256 = "0v4zpj8w67ydvnmanxbl8pwvn0cfv70c0mlw36a1r4n0rvgxffcn";
|
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
|
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/
|
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
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
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";
|
2019-08-27 07:28:29 +02:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
|
|
|
platforms = lib.platforms.linux;
|
2015-03-13 21:30:41 +01:00
|
|
|
};
|
|
|
|
}
|