qarte: use qt5’s mkDerivation

See #65399
This commit is contained in:
Vincent Laporte 2019-08-27 05:28:29 +00:00
parent 7a4a8e0089
commit e063d084de
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F
2 changed files with 15 additions and 10 deletions

View file

@ -1,8 +1,8 @@
{ stdenv, fetchbzr, python3, rtmpdump, makeWrapper }: { mkDerivation, lib, fetchbzr, python3, rtmpdump }:
let let
pythonEnv = python3.withPackages (ps: with ps; [ pyqt5 sip ]); pythonEnv = python3.withPackages (ps: with ps; [ pyqt5 ]);
in stdenv.mkDerivation { in mkDerivation {
name = "qarte-4.6.0"; name = "qarte-4.6.0";
src = fetchbzr { src = fetchbzr {
url = http://bazaar.launchpad.net/~vincent-vandevyvre/qarte/qarte-4; url = http://bazaar.launchpad.net/~vincent-vandevyvre/qarte/qarte-4;
@ -10,28 +10,33 @@ in stdenv.mkDerivation {
sha256 = "0v4zpj8w67ydvnmanxbl8pwvn0cfv70c0mlw36a1r4n0rvgxffcn"; sha256 = "0v4zpj8w67ydvnmanxbl8pwvn0cfv70c0mlw36a1r4n0rvgxffcn";
}; };
buildInputs = [ makeWrapper pythonEnv ]; buildInputs = [ pythonEnv ];
installPhase = '' installPhase = ''
runHook preInstall
mkdir -p $out/bin mkdir -p $out/bin
mv qarte $out/bin/ mv qarte $out/bin/
substituteInPlace $out/bin/qarte \ substituteInPlace $out/bin/qarte \
--replace '/usr/share' "$out/share" --replace '/usr/share' "$out/share"
wrapProgram $out/bin/qarte \
--prefix PATH : "${rtmpdump}/bin"
mkdir -p $out/share/man/man1/ mkdir -p $out/share/man/man1/
mv qarte.1 $out/share/man/man1/ mv qarte.1 $out/share/man/man1/
mkdir -p $out/share/qarte mkdir -p $out/share/qarte
mv * $out/share/qarte/ mv * $out/share/qarte/
runHook postInstall
'';
postFixup = ''
wrapQtApp $out/bin/qarte \
--prefix PATH : ${rtmpdump}/bin
''; '';
meta = { meta = {
homepage = https://launchpad.net/qarte; homepage = https://launchpad.net/qarte;
description = "A recorder for Arte TV Guide and Arte Concert"; description = "A recorder for Arte TV Guide and Arte Concert";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
maintainers = with stdenv.lib.maintainers; [ vbgl ]; maintainers = with lib.maintainers; [ vbgl ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -5689,7 +5689,7 @@ in
openmodelica = callPackage ../applications/science/misc/openmodelica { }; openmodelica = callPackage ../applications/science/misc/openmodelica { };
qarte = callPackage ../applications/video/qarte { }; qarte = libsForQt5.callPackage ../applications/video/qarte { };
qlcplus = libsForQt5.callPackage ../applications/misc/qlcplus { }; qlcplus = libsForQt5.callPackage ../applications/misc/qlcplus { };