nixpkgs/pkgs/applications/video/simplescreenrecorder/default.nix
2017-03-06 07:56:33 -05:00

42 lines
1.1 KiB
Nix

{ stdenv, fetchurl, alsaLib, ffmpeg, libjack2, libX11, libXext
, libXfixes, mesa, pkgconfig, libpulseaudio, qt4
}:
stdenv.mkDerivation rec {
name = "simplescreenrecorder-${version}";
version = "0.3.8";
src = fetchurl {
url = "https://github.com/MaartenBaert/ssr/archive/${version}.tar.gz";
sha256 = "0v8w35n8w772s08w7k0icynqdsdakbrcanbgx6j847bfqfsg21gg";
};
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
'';
buildInputs = [
alsaLib ffmpeg libjack2 libX11 libXext libXfixes mesa pkgconfig
libpulseaudio qt4
];
enableParallelBuilding = true;
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 ];
};
}