Skip to content

Commit

Permalink
vokosscreen-ng: init at 3.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
SCOTT-HAMILTON authored and vbgl committed Sep 4, 2020
1 parent 762434f commit 4906881
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
71 changes: 71 additions & 0 deletions pkgs/applications/video/vokoscreen-ng/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{ lib
, mkDerivation
, fetchFromGitHub
, fetchpatch
, pkg-config
, qmake
, qttools
, gstreamer
, libX11
, qtbase
, qtmultimedia
, qtx11extras

, gst-plugins-base
, gst-plugins-good
, gst-plugins-bad
, gst-plugins-ugly
}:
mkDerivation rec {

pname = "vokoscreen-ng";
version = "3.0.5";

src = fetchFromGitHub {
owner = "vkohaupt";
repo = "vokoscreenNG";
rev = version;
sha256 = "1spyqw8h8bkc1prdb9aixiw5h3hk3gp2p0nj934bnwq04kmfp660";
};

patches = [
# Better linux integration
(fetchpatch {
url = "https://github.com/vkohaupt/vokoscreenNG/commit/0a3784095ecca582f7eb09551ceb34c309d83637.patch";
sha256 = "1iibimv8xfxxfk44kkbrkay37ibdndjvs9g53mxr8x8vrsp917bz";
})
];

qmakeFlags = [ "src/vokoscreenNG.pro" ];

nativeBuildInputs = [ qttools pkg-config qmake ];
buildInputs = [
gstreamer
libX11
qtbase
qtmultimedia
qtx11extras

gst-plugins-base
gst-plugins-good
gst-plugins-bad
gst-plugins-ugly
];

postPatch = ''
substituteInPlace src/vokoscreenNG.pro \
--replace lrelease-qt5 lrelease
'';

postInstall = ''
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
'';

meta = with lib; {
description = "User friendly Open Source screencaster for Linux and Windows";
license = licenses.gpl2Plus;
homepage = "https://github.com/vkohaupt/vokoscreenNG";
maintainers = with maintainers; [ shamilton ];
platforms = platforms.linux;
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27374,6 +27374,10 @@ in

vokoscreen = libsForQt5.callPackage ../applications/video/vokoscreen { };

vokoscreen-ng = libsForQt5.callPackage ../applications/video/vokoscreen-ng {
inherit (gst_all_1) gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly;
};

vttest = callPackage ../tools/misc/vttest { };

wacomtablet = libsForQt5.callPackage ../tools/misc/wacomtablet { };
Expand Down

0 comments on commit 4906881

Please sign in to comment.