eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
57 lines
1.3 KiB
Nix
57 lines
1.3 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchurl
|
|
, pkg-config
|
|
, makeWrapper
|
|
, gtk3
|
|
, libpulseaudio
|
|
, libdrm
|
|
, gpu-screen-recorder
|
|
, libglvnd
|
|
, wrapGAppsHook3
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "gpu-screen-recorder-gtk";
|
|
version = "3.2.5";
|
|
|
|
src = fetchurl {
|
|
url = "https://dec05eba.com/snapshot/gpu-screen-recorder-gtk.git.r175.cfd18af.tar.gz";
|
|
hash = "sha256-HhZe22Hm9yGoy5WoyuP2+Wj8E3nMs4uf96mzmP6CMqU=";
|
|
};
|
|
sourceRoot = ".";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
makeWrapper
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk3
|
|
libpulseaudio
|
|
libdrm
|
|
];
|
|
|
|
buildPhase = ''
|
|
./build.sh
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -Dt $out/bin/ gpu-screen-recorder-gtk
|
|
install -Dt $out/share/applications/ gpu-screen-recorder-gtk.desktop
|
|
|
|
gappsWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ gpu-screen-recorder ]})
|
|
# we also append /run/opengl-driver/lib as it otherwise fails to find libcuda.
|
|
gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libglvnd ]}:/run/opengl-driver/lib)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "GTK frontend for gpu-screen-recorder.";
|
|
mainProgram = "gpu-screen-recorder-gtk";
|
|
homepage = "https://git.dec05eba.com/gpu-screen-recorder-gtk/about/";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ babbaj ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|