Add configuration

This commit is contained in:
kasey committed 2026-11-29 09:52:38 -06:00
1 parent eb62e19766
commit 3b4fe6f60c
16 files changed
+1488

No files matched your search

+60
View File
@@ -0,0 +1,60 @@
{
lib,
stdenv,
fetchgit,
pkg-config,
meson,
ninja,
libx11,
libxrender,
libxrandr,
libxext,
libglvnd,
wayland,
wayland-scanner,
gitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "gpu-screen-recorder-notification";
version = "1.1.1";
src = fetchgit {
url = "https://repo.dec05eba.com/gpu-screen-recorder-notification";
tag = finalAttrs.version;
hash = "sha256-WMuHiXNdGPMLlf6DZJGNC/PJgnycRAvRhnW8m104/t0=";
};
postPatch = ''
substituteInPlace depends/mglpp/depends/mgl/src/gl.c \
--replace-fail "libGL.so.1" "${lib.getLib libglvnd}/lib/libGL.so.1" \
--replace-fail "libGLX.so.0" "${lib.getLib libglvnd}/lib/libGLX.so.0" \
--replace-fail "libEGL.so.1" "${lib.getLib libglvnd}/lib/libEGL.so.1"
'';
nativeBuildInputs = [
pkg-config
meson
ninja
];
buildInputs = [
libx11
libxrender
libxrandr
libxext
libglvnd
wayland
wayland-scanner
];
passthru.updateScript = gitUpdater {};
meta = {
description = "Notification in the style of ShadowPlay";
homepage = "https://git.dec05eba.com/gpu-screen-recorder-notification/about/";
license = lib.licenses.gpl3Only;
mainProgram = "gsr-notify";
maintainers = with lib.maintainers; [js6pak];
platforms = lib.platforms.linux;
};
})