2020-04-24 23:36:52 +00:00
|
|
|
{ mkDerivation, lib, fetchbzr, python3, rtmpdump }:
|
|
|
|
|
|
|
|
let
|
2022-06-16 17:23:12 +00:00
|
|
|
pythonEnv = python3.withPackages (ps: with ps; [ m3u8 pyqt5_with_qtmultimedia ]);
|
2020-04-24 23:36:52 +00:00
|
|
|
in mkDerivation {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "qarte";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "5.5.0";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchbzr {
|
2023-10-19 13:55:26 +00:00
|
|
|
url = "http://bazaar.launchpad.net/~vincent-vandevyvre/qarte/qarte-5";
|
|
|
|
rev = "88";
|
|
|
|
sha256 = "sha256-+Ixe4bWKubH/XBESwmP2NWS8bH0jq611c3MZn7W87Jw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pythonEnv ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2020-04-24 23:36:52 +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-05 21:33:18 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapQtApp $out/bin/qarte \
|
|
|
|
--prefix PATH : ${rtmpdump}/bin
|
|
|
|
'';
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://launchpad.net/qarte";
|
|
|
|
description = "A recorder for Arte TV Guide and Arte Concert";
|
2021-08-05 21:33:18 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "qarte";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|