biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / video / gpu-screen-recorder / gpu-screen-recorder-gtk.nix
blobd84527dcaebb2ca70680c1dd35d38a11fa269c18
2   stdenv,
3   lib,
4   fetchurl,
5   pkg-config,
6   addDriverRunpath,
7   desktop-file-utils,
8   makeWrapper,
9   meson,
10   ninja,
11   gtk3,
12   libayatana-appindicator,
13   libpulseaudio,
14   libdrm,
15   gpu-screen-recorder,
16   libglvnd,
17   libX11,
18   libXrandr,
19   wayland,
20   wrapGAppsHook3,
21   wrapperDir ? "/run/wrappers/bin",
24 stdenv.mkDerivation (finalAttrs: {
25   pname = "gpu-screen-recorder-gtk";
26   version = "4.2.1";
28   src = fetchurl {
29     url = "https://dec05eba.com/snapshot/gpu-screen-recorder-gtk.git.${finalAttrs.version}.tar.gz";
30     hash = "sha256-qk5bI23fypvv0yN9Ql7TOerBhoRzj65EcoAy3lMGMqc=";
31   };
33   sourceRoot = ".";
35   nativeBuildInputs = [
36     desktop-file-utils
37     pkg-config
38     makeWrapper
39     meson
40     ninja
41     wrapGAppsHook3
42   ];
44   buildInputs = [
45     gtk3
46     libayatana-appindicator
47     libpulseaudio
48     libdrm
49     libX11
50     libXrandr
51     wayland
52   ];
54   preFixup =
55     let
56       gpu-screen-recorder-wrapped = gpu-screen-recorder.override {
57         inherit wrapperDir;
58       };
59     in
60     ''
61       gappsWrapperArgs+=(--prefix PATH : ${wrapperDir})
62       gappsWrapperArgs+=(--suffix PATH : ${lib.makeBinPath [ gpu-screen-recorder-wrapped ]})
63       gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : ${
64         lib.makeLibraryPath [
65           libglvnd
66           addDriverRunpath.driverLink
67         ]
68       })
69     '';
71   meta = {
72     changelog = "https://git.dec05eba.com/gpu-screen-recorder-gtk/tree/com.dec05eba.gpu_screen_recorder.appdata.xml#n82";
73     description = "GTK frontend for gpu-screen-recorder.";
74     homepage = "https://git.dec05eba.com/gpu-screen-recorder-gtk/about/";
75     license = lib.licenses.gpl3Only;
76     mainProgram = "gpu-screen-recorder-gtk";
77     maintainers = with lib.maintainers; [ babbaj ];
78     platforms = [ "x86_64-linux" ];
79   };