2021-06-10 03:57:09 +01:00
|
|
|
{ lib, stdenv, mkDerivation, fetchFromGitHub, alsa-lib, ffmpeg, libjack2, libX11, libXext, libXinerama, qtx11extras
|
2021-04-25 19:42:56 +01:00
|
|
|
, libXfixes, libGLU, libGL, pkg-config, libpulseaudio, libv4l, qtbase, qttools, cmake, ninja
|
2014-03-26 22:02:15 +00:00
|
|
|
}:
|
|
|
|
|
2019-08-29 19:38:27 +01:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "simplescreenrecorder";
|
2021-04-25 19:42:56 +01:00
|
|
|
version = "0.4.3";
|
2014-03-26 22:02:15 +00:00
|
|
|
|
2021-04-25 19:42:56 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MaartenBaert";
|
|
|
|
repo = "ssr";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0mrx8wprs8bi42fwwvk6rh634ic9jnn0gkfpd6q9pcawnnbz3vq8";
|
2014-03-26 22:02:15 +00:00
|
|
|
};
|
|
|
|
|
2018-05-04 14:11:12 +01:00
|
|
|
cmakeFlags = [ "-DWITH_QT5=TRUE" ];
|
|
|
|
|
2016-07-10 23:41:53 +01:00
|
|
|
patches = [ ./fix-paths.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
for i in scripts/ssr-glinject src/AV/Input/GLInjectInput.cpp; do
|
|
|
|
substituteInPlace $i \
|
|
|
|
--subst-var out \
|
|
|
|
--subst-var-by sh ${stdenv.shell}
|
|
|
|
done
|
|
|
|
'';
|
2016-06-19 09:18:30 +01:00
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ninja ];
|
2018-01-05 22:26:11 +00:00
|
|
|
buildInputs = [
|
2021-06-10 03:57:09 +01:00
|
|
|
alsa-lib ffmpeg libjack2 libX11 libXext libXfixes libXinerama libGLU libGL
|
2021-04-25 19:42:56 +01:00
|
|
|
libpulseaudio libv4l qtbase qttools qtx11extras
|
2014-03-26 22:02:15 +00:00
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-03-26 22:02:15 +00:00
|
|
|
description = "A screen recorder for Linux";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.maartenbaert.be/simplescreenrecorder";
|
2021-04-25 19:42:56 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2018-05-04 14:11:12 +01:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2014-03-26 22:02:15 +00:00
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|