40 lines
1.2 KiB
Nix
40 lines
1.2 KiB
Nix
{ stdenv, fetchbzr, pythonPackages, rtmpdump, makeWrapper }:
|
|
|
|
let
|
|
inherit (pythonPackages) python pyqt4 sip;
|
|
in stdenv.mkDerivation {
|
|
name = "qarte-2.4.0";
|
|
src = fetchbzr {
|
|
url = http://bazaar.launchpad.net/~vincent-vandevyvre/qarte/trunk;
|
|
rev = "150";
|
|
sha256 = "0fj11jx9l5qi968c906rrksdic7w4yj414m47k6axlb4v6ghdnar";
|
|
};
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
mv qarte $out/bin/
|
|
substituteInPlace $out/bin/qarte \
|
|
--replace '/usr/bin/python' "${python.interpreter}" \
|
|
--replace '/usr/share' "$out/share"
|
|
wrapProgram $out/bin/qarte \
|
|
--prefix PYTHONPATH : "${pyqt4}/lib/${python.libPrefix}/site-packages:${sip}/lib/${python.libPrefix}/site-packages" \
|
|
--prefix PATH : "${rtmpdump}/bin"
|
|
|
|
mkdir -p $out/share/man/man1/
|
|
mv qarte.1 $out/share/man/man1/
|
|
|
|
mkdir -p $out/share/qarte
|
|
mv * $out/share/qarte/
|
|
'';
|
|
|
|
meta = {
|
|
homepage = https://launchpad.net/qarte;
|
|
description = "A recorder for Arte TV Guide and Arte Concert";
|
|
license = stdenv.lib.licenses.gpl3;
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|