2015-06-27 08:17:52 +01:00
|
|
|
{ stdenv, fetchurl, alsaLib, ffmpeg, libjack2, libX11, libXext
|
2018-02-24 13:12:44 +00:00
|
|
|
, libXfixes, libGLU_combined, pkgconfig, libpulseaudio, qt4, cmake, ninja
|
2014-03-26 22:02:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "simplescreenrecorder-${version}";
|
2018-01-05 22:26:11 +00:00
|
|
|
version = "0.3.9";
|
2014-03-26 22:02:15 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/MaartenBaert/ssr/archive/${version}.tar.gz";
|
2018-01-05 22:26:11 +00:00
|
|
|
sha256 = "1gnf9wbiq2fcbqcn1a5nfmp8r0nxrrlgh2wly2mfkkwymynhx0pk";
|
2014-03-26 22:02:15 +00:00
|
|
|
};
|
|
|
|
|
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
|
|
|
|
2018-01-05 22:26:11 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig cmake ninja ];
|
|
|
|
buildInputs = [
|
2018-02-24 13:12:44 +00:00
|
|
|
alsaLib ffmpeg libjack2 libX11 libXext libXfixes libGLU_combined
|
2015-05-27 20:42:15 +01:00
|
|
|
libpulseaudio qt4
|
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 ];
|
|
|
|
};
|
|
|
|
}
|