summary refs log tree commit diff
path: root/pkgs/applications/video
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2019-09-12 22:49:43 +0200
committerJan Tojnar <jtojnar@gmail.com>2019-09-12 22:49:43 +0200
commita441eaa7b16ee0e264f74303ef36e37ecb3fe9dc (patch)
treec8dee9fa804b516d2447f816359e8f15b3d85110 /pkgs/applications/video
parent20c7a35429c4882227f1fb9788aeebc7c12726bf (diff)
parent7d39ecdf58cc000013e4bf05d9c2f32ab4bf93a7 (diff)
downloadnixpkgs-a441eaa7b16ee0e264f74303ef36e37ecb3fe9dc.tar
nixpkgs-a441eaa7b16ee0e264f74303ef36e37ecb3fe9dc.tar.gz
nixpkgs-a441eaa7b16ee0e264f74303ef36e37ecb3fe9dc.tar.bz2
nixpkgs-a441eaa7b16ee0e264f74303ef36e37ecb3fe9dc.tar.lz
nixpkgs-a441eaa7b16ee0e264f74303ef36e37ecb3fe9dc.tar.xz
nixpkgs-a441eaa7b16ee0e264f74303ef36e37ecb3fe9dc.tar.zst
nixpkgs-a441eaa7b16ee0e264f74303ef36e37ecb3fe9dc.zip
Merge branch 'staging-next' into staging
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r--pkgs/applications/video/qarte/default.nix23
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;
   };
 }