2015-06-27 08:17:52 +01:00
|
|
|
{ stdenv, fetchurl, alsaLib, ffmpeg, libjack2, libX11, libXext
|
2015-05-27 20:42:15 +01:00
|
|
|
, libXfixes, mesa, pkgconfig, libpulseaudio, qt4
|
2014-03-26 22:02:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "simplescreenrecorder-${version}";
|
2017-03-03 15:52:16 +00:00
|
|
|
version = "0.3.8";
|
2014-03-26 22:02:15 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/MaartenBaert/ssr/archive/${version}.tar.gz";
|
2017-03-03 15:52:16 +00:00
|
|
|
sha256 = "0v8w35n8w772s08w7k0icynqdsdakbrcanbgx6j847bfqfsg21gg";
|
2014-03-26 22:02:15 +00:00
|
|
|
};
|
|
|
|
|
2016-07-10 23:41:53 +01: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 09:18:30 +01:00
|
|
|
|
2014-03-26 22:02:15 +00:00
|
|
|
buildInputs = [
|
2015-06-27 08:17:52 +01:00
|
|
|
alsaLib ffmpeg libjack2 libX11 libXext libXfixes mesa pkgconfig
|
2015-05-27 20:42:15 +01:00
|
|
|
libpulseaudio qt4
|
2014-03-26 22:02:15 +00:00
|
|
|
];
|
|
|
|
|
2016-06-19 09:18:30 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-03-26 22:02:15 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|