Files
2026-09-16 05:53:09 +00:00

80 lines
1.6 KiB
Nix

{
fetchgit,
gitUpdater,
gsettings-desktop-schemas,
lib,
libglvnd,
libx11,
libxext,
libxkbcommon,
libxrandr,
libxrender,
makeWrapper,
meson,
ninja,
pango,
pkg-config,
stdenv,
wayland-scanner,
wayland,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "gpu-screen-recorder-notification";
version = "1.3.6";
src = fetchgit {
url = "https://repo.dec05eba.com/gpu-screen-recorder-notification";
tag = finalAttrs.version;
hash = "sha256-UmK9aDVsWgMZx9dCA0LFLmY0NLmhwh3O2VgztUzvPOs=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
makeWrapper
wayland-scanner
];
depsBuildBuild = [ pkg-config ];
buildInputs = [
libglvnd
pango
libx11
libxrandr
libxrender
libxkbcommon
libxext
wayland
gsettings-desktop-schemas
];
__structuredAttrs = true;
strictDeps = true;
mesonBuildType = "release";
postInstall = ''
wrapProgram "$out/bin/gsr-notify" \
--prefix XDG_DATA_DIRS : "${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}" \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libglvnd ]}"
'';
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; [
AhmedAmr
keenanweaver
];
platforms = lib.platforms.linux;
sourceProvenance = with lib.sourceTypes; [ fromSource ];
};
})