2023-11-19 22:42:58 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, makeWrapper
|
|
|
|
, gtk3
|
|
|
|
, libpulseaudio
|
|
|
|
, libdrm
|
|
|
|
, gpu-screen-recorder
|
|
|
|
, libglvnd
|
2024-04-26 22:24:03 +02:00
|
|
|
, wrapGAppsHook3
|
2023-11-19 22:42:58 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2022-03-23 04:04:20 +01:00
|
|
|
pname = "gpu-screen-recorder-gtk";
|
2023-11-19 22:42:58 +01:00
|
|
|
version = "3.2.5";
|
2022-03-23 04:04:20 +01:00
|
|
|
|
2023-11-19 22:42:58 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://dec05eba.com/snapshot/gpu-screen-recorder-gtk.git.r175.cfd18af.tar.gz";
|
|
|
|
hash = "sha256-HhZe22Hm9yGoy5WoyuP2+Wj8E3nMs4uf96mzmP6CMqU=";
|
2022-03-23 04:04:20 +01:00
|
|
|
};
|
2023-11-19 22:42:58 +01:00
|
|
|
sourceRoot = ".";
|
2022-03-23 04:04:20 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
makeWrapper
|
2024-04-26 22:24:03 +02:00
|
|
|
wrapGAppsHook3
|
2022-03-23 04:04:20 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
libpulseaudio
|
2023-11-19 22:42:58 +01:00
|
|
|
libdrm
|
2022-03-23 04:04:20 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
./build.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dt $out/bin/ gpu-screen-recorder-gtk
|
|
|
|
install -Dt $out/share/applications/ gpu-screen-recorder-gtk.desktop
|
|
|
|
|
2023-11-19 22:42:58 +01:00
|
|
|
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)
|
2022-03-23 04:04:20 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GTK frontend for gpu-screen-recorder.";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "gpu-screen-recorder-gtk";
|
2022-03-23 04:04:20 +01:00
|
|
|
homepage = "https://git.dec05eba.com/gpu-screen-recorder-gtk/about/";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ babbaj ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|