2024-08-27 21:52:44 +00:00
|
|
|
{ lib, stdenv, mkDerivation, fetchFromGitHub, alsa-lib, ffmpeg, libjack2, libX11, libXext, libXinerama, qtx11extras
|
2024-05-25 13:44:14 +00:00
|
|
|
, libXfixes, libGLU, libGL, pkg-config, libpulseaudio, libv4l, qtbase, qttools, cmake, ninja, nix-update-script
|
2014-03-26 22:02:15 +00:00
|
|
|
}:
|
|
|
|
|
2019-08-29 18:38:27 +00:00
|
|
|
mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "simplescreenrecorder";
|
2024-07-14 14:05:53 +00:00
|
|
|
version = "0.4.4-unstable-2024-08-13";
|
2014-03-26 22:02:15 +00:00
|
|
|
|
2021-04-25 18:42:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MaartenBaert";
|
|
|
|
repo = "ssr";
|
2024-07-14 14:05:53 +00:00
|
|
|
rev = "4e3ba13dd212fc4213fe0911f371bc7d34033b8d";
|
|
|
|
hash = "sha256-jBZkyrZOrUljWgO8U4SZOTCu3sOm83unQ7vyv+KkAuE=";
|
2014-03-26 22:02:15 +00:00
|
|
|
};
|
|
|
|
|
2022-12-18 18:14:17 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DWITH_QT5=TRUE"
|
|
|
|
"-DWITH_GLINJECT=${if stdenv.hostPlatform.isx86 then "TRUE" else "FALSE"}"
|
|
|
|
];
|
2018-05-04 13:11:12 +00:00
|
|
|
|
2016-07-10 22:41:53 +00:00
|
|
|
postPatch = ''
|
2024-05-25 13:50:09 +00:00
|
|
|
substituteInPlace scripts/ssr-glinject \
|
|
|
|
--replace-fail "libssr-glinject.so" "$out/lib/libssr-glinject.so"
|
|
|
|
|
|
|
|
substituteInPlace src/AV/Input/GLInjectInput.cpp \
|
|
|
|
--replace-fail "/bin/sh" "${stdenv.shell}" \
|
|
|
|
--replace-fail "libssr-glinject.so" "$out/lib/libssr-glinject.so"
|
2016-07-10 22:41:53 +00:00
|
|
|
'';
|
2016-06-19 08:18:30 +00:00
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ninja ];
|
2018-01-05 22:26:11 +00:00
|
|
|
buildInputs = [
|
2024-08-27 21:52:44 +00:00
|
|
|
alsa-lib ffmpeg libjack2 libX11 libXext libXfixes libXinerama libGLU libGL
|
2021-04-25 18:42:56 +00:00
|
|
|
libpulseaudio libv4l qtbase qttools qtx11extras
|
2014-03-26 22:02:15 +00:00
|
|
|
];
|
|
|
|
|
2024-05-25 13:44:14 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-03-26 22:02:15 +00:00
|
|
|
description = "Screen recorder for Linux";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.maartenbaert.be/simplescreenrecorder";
|
2021-04-25 18:42:56 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2022-12-18 18:14:17 +00:00
|
|
|
platforms = platforms.linux;
|
2024-07-24 09:22:12 +00:00
|
|
|
maintainers = [ ];
|
2014-03-26 22:02:15 +00:00
|
|
|
};
|
|
|
|
}
|