2019-08-27 05:28:29 +00:00
|
|
|
{ mkDerivation, lib, fetchbzr, python3, rtmpdump }:
|
2015-03-13 20:30:41 +00:00
|
|
|
|
2016-08-14 10:37:20 +00:00
|
|
|
let
|
2019-08-27 05:39:43 +00:00
|
|
|
pythonEnv = python3.withPackages (ps: with ps; [ pyqt5_with_qtmultimedia ]);
|
2019-08-27 05:28:29 +00:00
|
|
|
in mkDerivation {
|
2019-05-23 06:06:27 +00:00
|
|
|
name = "qarte-4.6.0";
|
2015-03-13 20:30:41 +00:00
|
|
|
src = fetchbzr {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "http://bazaar.launchpad.net/~vincent-vandevyvre/qarte/qarte-4";
|
2019-05-23 06:06:27 +00:00
|
|
|
rev = "22";
|
|
|
|
sha256 = "0v4zpj8w67ydvnmanxbl8pwvn0cfv70c0mlw36a1r4n0rvgxffcn";
|
2015-03-13 20:30:41 +00:00
|
|
|
};
|
|
|
|
|
2019-08-27 05:28:29 +00:00
|
|
|
buildInputs = [ pythonEnv ];
|
2015-03-13 20:30:41 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2019-08-27 05:28:29 +00: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 05:28:29 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapQtApp $out/bin/qarte \
|
|
|
|
--prefix PATH : ${rtmpdump}/bin
|
2015-03-13 20:30:41 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00: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 05:28:29 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
|
|
|
platforms = lib.platforms.linux;
|
2015-03-13 20:30:41 +00:00
|
|
|
};
|
|
|
|
}
|