nixpkgs/pkgs/applications/video/vokoscreen/default.nix

54 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, fetchFromGitHub, mkDerivation
, pkg-config, qtbase, qttools, qmake, qtmultimedia, qtx11extras, alsa-lib, libv4l, libXrandr
2020-07-03 11:33:42 +00:00
, ffmpeg
}:
2019-08-02 12:58:00 +00:00
mkDerivation rec {
2019-04-22 20:20:53 +00:00
pname = "vokoscreen";
version = "2.5.8-beta";
src = fetchFromGitHub {
owner = "vkohaupt";
repo = "vokoscreen";
rev = version;
sha256 = "1a85vbsi53mhzva49smqwcs61c51wv3ic410nvb9is9nlsbifwan";
};
nativeBuildInputs = [ pkg-config qmake ];
buildInputs = [
alsa-lib
2017-02-03 15:20:14 +00:00
libv4l
qtbase
2019-04-22 20:20:53 +00:00
qtmultimedia
2017-02-03 15:20:14 +00:00
qttools
qtx11extras
libXrandr
];
patches = [
./ffmpeg-out-of-box.patch
];
preConfigure = ''
sed -i 's/lrelease-qt5/lrelease/g' vokoscreen.pro
'';
postConfigure = ''
2020-07-03 11:33:42 +00:00
substituteInPlace settings/QvkSettings.cpp --subst-var-by ffmpeg ${ffmpeg}
'';
meta = with lib; {
description = "Simple GUI screencast recorder, using ffmpeg";
homepage = "https://linuxecke.volkoh.de/vokoscreen/vokoscreen.html";
longDescription = ''
vokoscreen is an easy to use screencast creator to record
educational videos, live recordings of browser, installation,
videoconferences, etc.
'';
license = licenses.gpl2Plus;
2019-04-22 20:20:53 +00:00
maintainers = [ maintainers.league ];
platforms = platforms.linux;
};
}