@@ -0,0 +1,71 @@
1+{ lib
2+, mkDerivation
3+, fetchFromGitHub
4+, fetchpatch
5+, pkg-config
6+, qmake
7+, qttools
8+, gstreamer
9+, libX11
10+, qtbase
11+, qtmultimedia
12+, qtx11extras
13+
14+, gst-plugins-base
15+, gst-plugins-good
16+, gst-plugins-bad
17+, gst-plugins-ugly
18+}:
19+mkDerivation rec {
20+
21+ pname = "vokoscreen-ng";
22+ version = "3.0.5";
23+
24+ src = fetchFromGitHub {
25+ owner = "vkohaupt";
26+ repo = "vokoscreenNG";
27+ rev = version;
28+ sha256 = "1spyqw8h8bkc1prdb9aixiw5h3hk3gp2p0nj934bnwq04kmfp660";
29+ };
30+
31+ patches = [
32+ # Better linux integration
33+ (fetchpatch {
34+ url = "https://github.com/vkohaupt/vokoscreenNG/commit/0a3784095ecca582f7eb09551ceb34c309d83637.patch";
35+ sha256 = "1iibimv8xfxxfk44kkbrkay37ibdndjvs9g53mxr8x8vrsp917bz";
36+ })
37+ ];
38+
39+ qmakeFlags = [ "src/vokoscreenNG.pro" ];
40+
41+ nativeBuildInputs = [ qttools pkg-config qmake ];
42+ buildInputs = [
43+ gstreamer
44+ libX11
45+ qtbase
46+ qtmultimedia
47+ qtx11extras
48+
49+ gst-plugins-base
50+ gst-plugins-good
51+ gst-plugins-bad
52+ gst-plugins-ugly
53+ ];
54+
55+ postPatch = ''
56+ substituteInPlace src/vokoscreenNG.pro \
57+ --replace lrelease-qt5 lrelease
58+ '';
59+
60+ postInstall = ''
61+ qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
62+ '';
63+
64+ meta = with lib; {
65+ description = "User friendly Open Source screencaster for Linux and Windows";
66+ license = licenses.gpl2Plus;
67+ homepage = "https://github.com/vkohaupt/vokoscreenNG";
68+ maintainers = with maintainers; [ shamilton ];
69+ platforms = platforms.linux;
70+ };
71+}