diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/video/simplescreenrecorder/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/video/simplescreenrecorder/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/video/simplescreenrecorder/default.nix b/nixpkgs/pkgs/applications/video/simplescreenrecorder/default.nix new file mode 100644 index 000000000000..b456d8ee9a66 --- /dev/null +++ b/nixpkgs/pkgs/applications/video/simplescreenrecorder/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchurl, alsaLib, ffmpeg, libjack2, libX11, libXext, qtx11extras +, libXfixes, libGLU_combined, pkgconfig, libpulseaudio, qtbase, cmake, ninja +}: + +stdenv.mkDerivation rec { + name = "simplescreenrecorder-${version}"; + version = "0.3.11"; + + src = fetchurl { + url = "https://github.com/MaartenBaert/ssr/archive/${version}.tar.gz"; + sha256 = "0l6irdadqpajvv0dj3ngs1231n559l0y1pykhs2h7526qm4w7xal"; + }; + + cmakeFlags = [ "-DWITH_QT5=TRUE" ]; + + 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 + ''; + + nativeBuildInputs = [ pkgconfig cmake ninja ]; + buildInputs = [ + alsaLib ffmpeg libjack2 libX11 libXext libXfixes libGLU_combined + libpulseaudio qtbase qtx11extras + ]; + + meta = with stdenv.lib; { + description = "A screen recorder for Linux"; + homepage = http://www.maartenbaert.be/simplescreenrecorder; + license = licenses.gpl3; + platforms = [ "x86_64-linux" ]; + maintainers = [ maintainers.goibhniu ]; + }; +} |