nixpkgs/pkgs/applications/video/qarte/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.1 KiB
Nix
Raw Normal View History

{ mkDerivation, lib, fetchbzr, python3, rtmpdump }:
2016-08-14 10:37:20 +00:00
let
2022-06-01 04:50:34 +00:00
pythonEnv = python3.withPackages (ps: with ps; [ m3u8 pyqt5_with_qtmultimedia ]);
in mkDerivation {
2021-08-04 14:18:00 +00:00
pname = "qarte";
2022-06-01 04:50:34 +00:00
version = "4.17.1";
2021-08-04 14:18:00 +00:00
src = fetchbzr {
url = "http://bazaar.launchpad.net/~vincent-vandevyvre/qarte/qarte-4";
2022-06-01 04:50:34 +00:00
rev = "74";
sha256 = "sha256:18ky9qwfvbifd0xrbmnfm3cm2vyy5jgf9rrca2hby46sjf2745h4";
};
buildInputs = [ pythonEnv ];
installPhase = ''
runHook preInstall
2021-08-04 14:18:00 +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 14:18:00 +00:00
runHook postInstall
'';
postFixup = ''
wrapQtApp $out/bin/qarte \
--prefix PATH : ${rtmpdump}/bin
'';
2021-08-04 14:18:00 +00:00
meta = with lib; {
homepage = "https://launchpad.net/qarte";
description = "A recorder for Arte TV Guide and Arte Concert";
2021-08-04 14:18:00 +00:00
license = licenses.gpl3;
maintainers = with maintainers; [ vbgl ];
platforms = platforms.linux;
};
}