about summary refs log tree commit diff
path: root/pkgs/applications/video
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-02-04 16:00:47 +0100
committerGitHub <noreply@github.com>2021-02-04 16:00:47 +0100
commit92a710b34c3c9f0071f3e3657ec077d65fae949d (patch)
tree78f477d66dd1515853a74c86b0bf67d42c0147fc /pkgs/applications/video
parentd54e3d0a9cf7f35fa338d1196fe47fe319e185e0 (diff)
parentf01474f4e1cd82ead1889adbd1d00a75d133fe35 (diff)
downloadnixlib-92a710b34c3c9f0071f3e3657ec077d65fae949d.tar
nixlib-92a710b34c3c9f0071f3e3657ec077d65fae949d.tar.gz
nixlib-92a710b34c3c9f0071f3e3657ec077d65fae949d.tar.bz2
nixlib-92a710b34c3c9f0071f3e3657ec077d65fae949d.tar.lz
nixlib-92a710b34c3c9f0071f3e3657ec077d65fae949d.tar.xz
nixlib-92a710b34c3c9f0071f3e3657ec077d65fae949d.tar.zst
nixlib-92a710b34c3c9f0071f3e3657ec077d65fae949d.zip
Merge pull request #111762 from SCOTT-HAMILTON/vokoscreenNG
vokoscreenNG: 3.0.5 -> 3.0.8
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r--pkgs/applications/video/vokoscreen-ng/default.nix15
-rw-r--r--pkgs/applications/video/vokoscreen-ng/linux-support-installation-target.patch40
2 files changed, 47 insertions, 8 deletions
diff --git a/pkgs/applications/video/vokoscreen-ng/default.nix b/pkgs/applications/video/vokoscreen-ng/default.nix
index 600bc715ffb4..1e042461ebd2 100644
--- a/pkgs/applications/video/vokoscreen-ng/default.nix
+++ b/pkgs/applications/video/vokoscreen-ng/default.nix
@@ -1,12 +1,12 @@
 { lib
 , mkDerivation
 , fetchFromGitHub
-, fetchpatch
 , pkg-config
 , qmake
 , qttools
 , gstreamer
 , libX11
+, pulseaudio
 , qtbase
 , qtmultimedia
 , qtx11extras
@@ -19,21 +19,19 @@
 mkDerivation rec {
 
   pname = "vokoscreen-ng";
-  version = "3.0.5";
+  version = "3.0.8";
 
   src = fetchFromGitHub {
     owner = "vkohaupt";
     repo = "vokoscreenNG";
     rev = version;
-    sha256 = "1spyqw8h8bkc1prdb9aixiw5h3hk3gp2p0nj934bnwq04kmfp660";
+    sha256 = "1302663hyp2xxhaavhfky24a2p9gz23i3rykmrc6c1n23h24snri";
   };
 
   patches = [
-    # Better linux integration
-    (fetchpatch {
-      url = "https://github.com/vkohaupt/vokoscreenNG/commit/0a3784095ecca582f7eb09551ceb34c309d83637.patch";
-      sha256 = "1iibimv8xfxxfk44kkbrkay37ibdndjvs9g53mxr8x8vrsp917bz";
-    })
+    # Adaptation of previously used https://github.com/City-busz/vokoscreenNG/commit/0a3784095ecca582f7eb09551ceb34c309d83637 patch
+    # used for 3.0.5 but incompatible at least since 3.0.8. The issue is addressed here https://github.com/vkohaupt/vokoscreenNG/issues/139
+    ./linux-support-installation-target.patch
   ];
 
   qmakeFlags = [ "src/vokoscreenNG.pro" ];
@@ -42,6 +40,7 @@ mkDerivation rec {
   buildInputs = [
     gstreamer
     libX11
+    pulseaudio
     qtbase
     qtmultimedia
     qtx11extras
diff --git a/pkgs/applications/video/vokoscreen-ng/linux-support-installation-target.patch b/pkgs/applications/video/vokoscreen-ng/linux-support-installation-target.patch
new file mode 100644
index 000000000000..4f1b63c342d8
--- /dev/null
+++ b/pkgs/applications/video/vokoscreen-ng/linux-support-installation-target.patch
@@ -0,0 +1,40 @@
+Seulement dans b: patch.patch
+Seulement dans b: ..rej
+diff --color -ur a/src/vokoscreenNG.pro b/src/vokoscreenNG.pro
+--- a/src/vokoscreenNG.pro	2021-02-03 15:00:57.377401016 +0100
++++ b/src/vokoscreenNG.pro	2021-02-03 15:09:18.141905863 +0100
+@@ -160,7 +160,32 @@
+ # systrayAlternative
+ include(systrayAlternative/systrayAlternative.pri)
+ 
++unix:!macx {
++  isEmpty(PREFIX) {
++    PREFIX = /usr/local
++  }
++  isEmpty(BINDIR) {
++    BINDIR = $$PREFIX/bin
++  }
++  isEmpty(DATADIR) {
++    DATADIR = $$PREFIX/share
++  }
++
++  target.path = $$BINDIR
++
++  icon.files = applications/vokoscreenNG.png
++  icon.path = $$DATADIR/icons/hicolor/256x256/apps/
++
++  desktop.files = applications/vokoscreenNG.desktop
++  desktop.path = $$DATADIR/applications/
++
++  appdata.files = applications/vokoscreenNG.appdata.xml
++  appdata.path = $$DATADIR/metainfo/
++
++  INSTALLS += target icon desktop appdata
++}
+ # ciscoOpenh264
+ win32:include(ciscoOpenh264/ciscoOpenh264.pri)
+ 
+-unix:include(wayland/wayland.pri)
+\ Pas de fin de ligne à la fin du fichier
++unix:include(wayland/wayland.pri)
++