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