git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #22207 from league/vokoscreen

vokoscreen: init at 2.5.0

commit8605cdc8982688f66ba5281c590f40ee1d9781c3 authorgoibhniu <cillian.deroiste@gmail.com> dateThu 2 Feb 2017, 09:51 (10 years ago) parent311ec6ac1c7d28
3 files changed+81
pkgs/applications/video/vokoscreen/default.nix+48 pkgs/applications/video/vokoscreen/ffmpeg-out-of-box.patch+31 pkgs/top-level/all-packages.nix+2
pkgs/applications/video/vokoscreen/default.nixnew file+48
@@ -0,0 +1,48 @@
1+{ stdenv, fetchgit
2+, pkgconfig, qt5, alsaLib, libv4l, xorg
3+, ffmpeg
4+}:
5+
6+stdenv.mkDerivation {
7+ name = "vokoscreen-2.5.0";
8+ src = fetchgit {
9+ url = "https://github.com/vkohaupt/vokoscreen.git";
10+ rev = "8325c8658d6e777d34d2e6b8c8bc03f8da9b3d2f";
11+ sha256 = "1hvw7xz1mj16ishbaip73wddbmgibsz0pad4y586zbarpynss25z";
12+ };
13+
14+ buildInputs = [
15+ alsaLib.dev
16+ libv4l.dev
17+ pkgconfig
18+ qt5.full
19+ qt5.qmakeHook
20+ qt5.qtx11extras
21+ xorg.libXrandr.dev
22+ ];
23+
24+ patches = [
25+ ./ffmpeg-out-of-box.patch
26+ ];
27+
28+ preConfigure = ''
29+ sed -i 's/lrelease-qt5/lrelease/g' vokoscreen.pro
30+ '';
31+
32+ postConfigure = ''
33+ substituteInPlace settings/QvkSettings.cpp --subst-var-by ffmpeg ${ffmpeg}
34+ '';
35+
36+ meta = with stdenv.lib; {
37+ description = "Simple GUI screencast recorder, using ffmpeg";
38+ homepage = "http://linuxecke.volkoh.de/vokoscreen/vokoscreen.html";
39+ longDescription = ''
40+ vokoscreen is an easy to use screencast creator to record
41+ educational videos, live recordings of browser, installation,
42+ videoconferences, etc.
43+ '';
44+ license = licenses.gpl2Plus;
45+ maintainers = [maintainers.league];
46+ platforms = platforms.linux;
47+ };
48+}
pkgs/applications/video/vokoscreen/ffmpeg-out-of-box.patchnew file+31
@@ -0,0 +1,31 @@
1+diff --git a/settings/QvkSettings.cpp b/settings/QvkSettings.cpp
2+index bbf2abf..187efad 100644
3+--- a/settings/QvkSettings.cpp
4++++ b/settings/QvkSettings.cpp
5+@@ -56,17 +56,8 @@ void QvkSettings::readAll()
6+ GIFPlayer = settings.value( "GIFplayer" ).toString();
7+ Minimized = settings.value( "Minimized", 0 ).toUInt();
8+ Countdown = settings.value( "Countdown", 0 ).toUInt();
9+- QFile file;
10+- if ( file.exists( qApp->applicationDirPath().append( "/bin/ffmpeg" ) ) == true )
11+- {
12+- vokoscreenWithLibs = true;
13+- Recorder = qApp->applicationDirPath().append( "/bin/ffmpeg" );
14+- }
15+- else
16+- {
17+- vokoscreenWithLibs = false;
18+- Recorder = settings.value( "Recorder", "ffmpeg" ).toString();
19+- }
20++ vokoscreenWithLibs = true;
21++ Recorder = settings.value( "Recorder", "@ffmpeg@/bin/ffmpeg" ).toString();
22+ settings.endGroup();
23+
24+ settings.beginGroup( "Videooptions" );
25+@@ -398,4 +389,4 @@ double QvkSettings::getShowClickTime()
26+ int QvkSettings::getShowKeyOnOff()
27+ {
28+ return showKeyOnOff;
29+-}
30+\ No newline at end of file
31++}
pkgs/top-level/all-packages.nix+2
@@ -17831,6 +17831,8 @@ with pkgs;
1783117831 vips = callPackage ../tools/graphics/vips { };
1783217832 nip2 = callPackage ../tools/graphics/nip2 { };
1783317833
17834+ vokoscreen = callPackage ../applications/video/vokoscreen { };
17835+
1783417836 wavegain = callPackage ../applications/audio/wavegain { };
1783517837
1783617838 wcalc = callPackage ../applications/misc/wcalc { };