mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 02:05:02 +00:00
gpu-screen-recorder-ui: init at 1.13.5
(cherry picked from commit 437771eb59)
This commit is contained in:
committed by
github-actions[bot]
parent
938741d792
commit
9fec61a048
120
pkgs/by-name/gp/gpu-screen-recorder-ui/package.nix
Normal file
120
pkgs/by-name/gp/gpu-screen-recorder-ui/package.nix
Normal file
@@ -0,0 +1,120 @@
|
||||
{
|
||||
dbus,
|
||||
desktop-file-utils,
|
||||
fetchgit,
|
||||
gitUpdater,
|
||||
gpu-screen-recorder,
|
||||
gpu-screen-recorder-notification,
|
||||
gsettings-desktop-schemas,
|
||||
lib,
|
||||
libcap,
|
||||
libdrm,
|
||||
libglvnd,
|
||||
libpulseaudio,
|
||||
libx11,
|
||||
libxcomposite,
|
||||
libxcursor,
|
||||
libxext,
|
||||
libxfixes,
|
||||
libxi,
|
||||
libxkbcommon,
|
||||
libxrandr,
|
||||
libxrender,
|
||||
linuxHeaders,
|
||||
makeWrapper,
|
||||
meson,
|
||||
ninja,
|
||||
pango,
|
||||
pkg-config,
|
||||
stdenv,
|
||||
wayland-scanner,
|
||||
wayland,
|
||||
wrapperDir ? "/run/wrappers/bin",
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "gpu-screen-recorder-ui";
|
||||
version = "1.13.5";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://repo.dec05eba.com/gpu-screen-recorder-ui";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-ObIN8qD+34nXZv6v6vLK3f6bezVSXqOd0xPGci52awU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
makeWrapper
|
||||
desktop-file-utils
|
||||
wayland-scanner
|
||||
];
|
||||
|
||||
depsBuildBuild = [ pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
libx11
|
||||
libxrandr
|
||||
libxrender
|
||||
libxkbcommon
|
||||
libxcomposite
|
||||
libxfixes
|
||||
libxext
|
||||
libxi
|
||||
libxcursor
|
||||
libglvnd
|
||||
libpulseaudio
|
||||
libdrm
|
||||
dbus
|
||||
linuxHeaders
|
||||
wayland
|
||||
pango
|
||||
libcap
|
||||
gsettings-desktop-schemas
|
||||
];
|
||||
|
||||
__structuredAttrs = true;
|
||||
strictDeps = true;
|
||||
|
||||
mesonBuildType = "release";
|
||||
|
||||
mesonFlags = [
|
||||
# must be handled in the nixos module as extra file permissions are stripped in the nix store
|
||||
(lib.mesonBool "capabilities" false)
|
||||
];
|
||||
|
||||
postInstall =
|
||||
let
|
||||
gpu-screen-recorder-wrapped = gpu-screen-recorder.override {
|
||||
inherit wrapperDir;
|
||||
};
|
||||
in
|
||||
''
|
||||
wrapProgram "$out/bin/gsr-ui" \
|
||||
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libglvnd ]}" \
|
||||
--prefix XDG_DATA_DIRS : "${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}" \
|
||||
--prefix PATH : "${wrapperDir}" \
|
||||
--suffix PATH : "${
|
||||
lib.makeBinPath [
|
||||
gpu-screen-recorder-wrapped
|
||||
gpu-screen-recorder-notification
|
||||
]
|
||||
}"
|
||||
'';
|
||||
|
||||
passthru.updateScript = gitUpdater { };
|
||||
|
||||
meta = {
|
||||
description = "Fullscreen overlay UI for GPU Screen Recorder in the style of ShadowPlay";
|
||||
homepage = "https://git.dec05eba.com/gpu-screen-recorder-ui/about";
|
||||
license = lib.licenses.gpl3Only;
|
||||
mainProgram = "gsr-ui";
|
||||
maintainers = with lib.maintainers; [
|
||||
AhmedAmr
|
||||
keenanweaver
|
||||
];
|
||||
platforms = lib.platforms.linux;
|
||||
sourceProvenance = with lib.sourceTypes; [ fromSource ];
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user