jql: 8.0.0 -> 8.0.2 (#362884)
[NixPkgs.git] / pkgs / applications / video / gpu-screen-recorder / gpu-screen-recorder-gtk.nix
blob92863147becfc2636cc220a2506baa95cd6a27c1
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.3";
28   src = fetchurl {
29     url = "https://dec05eba.com/snapshot/gpu-screen-recorder-gtk.git.${finalAttrs.version}.tar.gz";
30     hash = "sha256-pMUjglgRM51hjPbt6VP0aqM0oo7IiyPXTY/kLwwdR/k=";
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   };