diff options
author | Vincent Laporte <vbgl@users.noreply.github.com> | 2019-09-12 15:31:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-12 15:31:17 +0000 |
commit | bf759337fa315416fc8304c256243b824954e86f (patch) | |
tree | 659c1dfa61d8948294e222e0b59de7fccef8bd0c /pkgs/applications/video | |
parent | 6ea6c9d9f2e1721e4f5d801da0cc1556d9a449d7 (diff) | |
parent | ef15478313dccf73684d46816d20752ba5b18cf4 (diff) | |
download | nixpkgs-bf759337fa315416fc8304c256243b824954e86f.tar nixpkgs-bf759337fa315416fc8304c256243b824954e86f.tar.gz nixpkgs-bf759337fa315416fc8304c256243b824954e86f.tar.bz2 nixpkgs-bf759337fa315416fc8304c256243b824954e86f.tar.lz nixpkgs-bf759337fa315416fc8304c256243b824954e86f.tar.xz nixpkgs-bf759337fa315416fc8304c256243b824954e86f.tar.zst nixpkgs-bf759337fa315416fc8304c256243b824954e86f.zip |
Merge pull request #67544 from vbgl/qarte+fix-qt-platform
qarte: use qt5’s mkDerivation and an other fix
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r-- | pkgs/applications/video/qarte/default.nix | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/pkgs/applications/video/qarte/default.nix b/pkgs/applications/video/qarte/default.nix index f0c3776a433..cd6416032da 100644 --- a/pkgs/applications/video/qarte/default.nix +++ b/pkgs/applications/video/qarte/default.nix @@ -1,8 +1,8 @@ -{ stdenv, fetchbzr, python3, rtmpdump, makeWrapper }: +{ mkDerivation, lib, fetchbzr, python3, rtmpdump }: let - pythonEnv = python3.withPackages (ps: with ps; [ pyqt5 sip ]); -in stdenv.mkDerivation { + pythonEnv = python3.withPackages (ps: with ps; [ pyqt5_with_qtmultimedia ]); +in mkDerivation { name = "qarte-4.6.0"; src = fetchbzr { url = http://bazaar.launchpad.net/~vincent-vandevyvre/qarte/qarte-4; @@ -10,28 +10,33 @@ in stdenv.mkDerivation { sha256 = "0v4zpj8w67ydvnmanxbl8pwvn0cfv70c0mlw36a1r4n0rvgxffcn"; }; - buildInputs = [ makeWrapper pythonEnv ]; + buildInputs = [ pythonEnv ]; installPhase = '' + runHook preInstall mkdir -p $out/bin mv qarte $out/bin/ substituteInPlace $out/bin/qarte \ --replace '/usr/share' "$out/share" - wrapProgram $out/bin/qarte \ - --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/ + runHook postInstall + ''; + + postFixup = '' + wrapQtApp $out/bin/qarte \ + --prefix PATH : ${rtmpdump}/bin ''; 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; + license = lib.licenses.gpl3; + maintainers = with lib.maintainers; [ vbgl ]; + platforms = lib.platforms.linux; }; } |