2018-05-04 15:11:12 +02:00
|
|
|
{ stdenv, fetchurl, alsaLib, ffmpeg, libjack2, libX11, libXext, qtx11extras
|
|
|
|
, libXfixes, libGLU_combined, pkgconfig, libpulseaudio, qtbase, cmake, ninja
|
2014-03-26 23:02:15 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "simplescreenrecorder-${version}";
|
2018-05-23 03:56:33 +02:00
|
|
|
version = "0.3.11";
|
2014-03-26 23:02:15 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/MaartenBaert/ssr/archive/${version}.tar.gz";
|
2018-05-23 03:56:33 +02:00
|
|
|
sha256 = "0l6irdadqpajvv0dj3ngs1231n559l0y1pykhs2h7526qm4w7xal";
|
2014-03-26 23:02:15 +01:00
|
|
|
};
|
|
|
|
|
2018-05-04 15:11:12 +02:00
|
|
|
cmakeFlags = [ "-DWITH_QT5=TRUE" ];
|
|
|
|
|
2016-07-11 00:41:53 +02: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 10:18:30 +02:00
|
|
|
|
2018-01-05 23:26:11 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig cmake ninja ];
|
|
|
|
buildInputs = [
|
2018-02-24 14:12:44 +01:00
|
|
|
alsaLib ffmpeg libjack2 libX11 libXext libXfixes libGLU_combined
|
2018-05-04 15:11:12 +02:00
|
|
|
libpulseaudio qtbase qtx11extras
|
2014-03-26 23:02:15 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A screen recorder for Linux";
|
|
|
|
homepage = http://www.maartenbaert.be/simplescreenrecorder;
|
|
|
|
license = licenses.gpl3;
|
2018-05-04 15:11:12 +02:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2014-03-26 23:02:15 +01:00
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|