2015-06-27 09:17:52 +02:00
|
|
|
{ stdenv, fetchurl, alsaLib, ffmpeg, libjack2, libX11, libXext
|
2015-05-27 21:42:15 +02:00
|
|
|
, libXfixes, mesa, pkgconfig, libpulseaudio, qt4
|
2014-03-26 23:02:15 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "simplescreenrecorder-${version}";
|
2017-03-03 16:52:16 +01:00
|
|
|
version = "0.3.8";
|
2014-03-26 23:02:15 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/MaartenBaert/ssr/archive/${version}.tar.gz";
|
2017-03-03 16:52:16 +01:00
|
|
|
sha256 = "0v8w35n8w772s08w7k0icynqdsdakbrcanbgx6j847bfqfsg21gg";
|
2014-03-26 23:02:15 +01:00
|
|
|
};
|
|
|
|
|
2016-07-11 00:41:53 +02:00
|
|
|
patches = [ ./fix-paths.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# #455
|
|
|
|
sed '1i#include <random>' -i src/Benchmark.cpp
|
|
|
|
|
|
|
|
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
|
|
|
|
2014-03-26 23:02:15 +01:00
|
|
|
buildInputs = [
|
2015-06-27 09:17:52 +02:00
|
|
|
alsaLib ffmpeg libjack2 libX11 libXext libXfixes mesa pkgconfig
|
2015-05-27 21:42:15 +02:00
|
|
|
libpulseaudio qt4
|
2014-03-26 23:02:15 +01:00
|
|
|
];
|
|
|
|
|
2016-06-19 10:18:30 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
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;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|