3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/video/qarte/default.nix

47 lines
1.1 KiB
Nix
Raw Normal View History

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