gpu-screen-recorder: unstable-2024-05-21 -> unstable-2024-07-05

This commit is contained in:
Tim Schumacher
2024-07-12 21:23:03 +02:00
parent e5d825c360
commit 0193a0de27
@@ -2,6 +2,8 @@
, lib
, fetchurl
, makeWrapper
, meson
, ninja
, pkg-config
, libXcomposite
, libpulseaudio
@@ -10,24 +12,29 @@
, libdrm
, libva
, libglvnd
, libXdamage
, libXi
, libXrandr
, libXfixes
}:
stdenv.mkDerivation {
pname = "gpu-screen-recorder";
version = "unstable-2024-05-21";
version = "unstable-2024-07-05";
# Snapshot tarballs use the following versioning format:
# printf "r%s.%s\n" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
src = fetchurl {
url = "https://dec05eba.com/snapshot/gpu-screen-recorder.git.r594.e572073.tar.gz";
hash = "sha256-MTBxhvkoyotmRUx1sRN/7ruXBYwIbOFQNdJHhZ3DdDk=";
url = "https://dec05eba.com/snapshot/gpu-screen-recorder.git.r641.48cd80f.tar.gz";
hash = "sha256-hIEK8EYIxQTTiFePPZf4V0nsxqxkfcDeOG9GK9whn+0=";
};
sourceRoot = ".";
nativeBuildInputs = [
pkg-config
makeWrapper
meson
ninja
];
buildInputs = [
@@ -37,16 +44,21 @@ stdenv.mkDerivation {
wayland
libdrm
libva
libXdamage
libXi
libXrandr
libXfixes
];
buildPhase = ''
./build.sh
'';
mesonFlags = [
# FIXME: systemd unit file gets installed to absolute path.
"-Dsystemd=false"
# FIXME: Capabilities can not be set if not running the build with root permissions.
"-Dcapabilities=false"
];
postInstall = ''
install -Dt $out/bin gpu-screen-recorder gsr-kms-server
mkdir $out/bin/.wrapped
mv $out/bin/gpu-screen-recorder $out/bin/.wrapped/
makeWrapper "$out/bin/.wrapped/gpu-screen-recorder" "$out/bin/gpu-screen-recorder" \