Skip to content

Commit 9477c8f

Browse files
authored
gpu-screen-recorder{,-gtk}: add passthru.updateScript, update (#367552)
2 parents 12ba6c4 + 110d7b2 commit 9477c8f

File tree

4 files changed

+38
-26
lines changed

4 files changed

+38
-26
lines changed

nixos/modules/programs/gpu-screen-recorder.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ in
3434
capabilities = "cap_sys_admin+ep";
3535
source = "${package}/bin/gsr-kms-server";
3636
};
37+
security.wrappers."gpu-screen-recorder" = {
38+
owner = "root";
39+
group = "root";
40+
capabilities = "cap_sys_nice+ep";
41+
source = "${package}/bin/gpu-screen-recorder";
42+
};
3743
};
3844

3945
meta.maintainers = with lib.maintainers; [ timschumi ];
Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
stdenv,
33
lib,
4-
fetchurl,
4+
fetchgit,
55
pkg-config,
66
addDriverRunpath,
77
desktop-file-utils,
@@ -19,19 +19,19 @@
1919
wayland,
2020
wrapGAppsHook3,
2121
wrapperDir ? "/run/wrappers/bin",
22+
gitUpdater,
2223
}:
2324

24-
stdenv.mkDerivation (finalAttrs: {
25+
stdenv.mkDerivation rec {
2526
pname = "gpu-screen-recorder-gtk";
26-
version = "5.1.6";
27+
version = "5.7.0";
2728

28-
src = fetchurl {
29-
url = "https://dec05eba.com/snapshot/gpu-screen-recorder-gtk.git.${finalAttrs.version}.tar.gz";
30-
hash = "sha256-op5cDILQglVAW/oajc0rdrMC02JZZ8bdER1B1qWPkSk=";
29+
src = fetchgit {
30+
url = "https://repo.dec05eba.com/${pname}";
31+
tag = version;
32+
hash = "sha256-/s8FCV3hE7Gq1Ad6EhRNTZJwyskV+uRYvjJ43298AOw=";
3133
};
3234

33-
sourceRoot = ".";
34-
3535
nativeBuildInputs = [
3636
desktop-file-utils
3737
pkg-config
@@ -68,13 +68,18 @@ stdenv.mkDerivation (finalAttrs: {
6868
})
6969
'';
7070

71+
passthru.updateScript = gitUpdater { };
72+
7173
meta = {
7274
changelog = "https://git.dec05eba.com/gpu-screen-recorder-gtk/tree/com.dec05eba.gpu_screen_recorder.appdata.xml#n82";
7375
description = "GTK frontend for gpu-screen-recorder.";
7476
homepage = "https://git.dec05eba.com/gpu-screen-recorder-gtk/about/";
7577
license = lib.licenses.gpl3Only;
7678
mainProgram = "gpu-screen-recorder-gtk";
77-
maintainers = with lib.maintainers; [ babbaj ];
79+
maintainers = with lib.maintainers; [
80+
babbaj
81+
js6pak
82+
];
7883
platforms = [ "x86_64-linux" ];
7984
};
80-
})
85+
}

pkgs/applications/video/gpu-screen-recorder/default.nix renamed to pkgs/by-name/gp/gpu-screen-recorder/package.nix

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
stdenv,
33
lib,
4-
fetchurl,
4+
fetchgit,
55
makeWrapper,
66
meson,
77
ninja,
@@ -12,6 +12,7 @@
1212
dbus,
1313
ffmpeg,
1414
wayland,
15+
wayland-scanner,
1516
vulkan-headers,
1617
pipewire,
1718
libdrm,
@@ -22,19 +23,19 @@
2223
libXrandr,
2324
libXfixes,
2425
wrapperDir ? "/run/wrappers/bin",
26+
gitUpdater,
2527
}:
2628

27-
stdenv.mkDerivation (finalAttrs: {
29+
stdenv.mkDerivation rec {
2830
pname = "gpu-screen-recorder";
29-
version = "5.2.0";
31+
version = "5.5.3";
3032

31-
src = fetchurl {
32-
url = "https://dec05eba.com/snapshot/gpu-screen-recorder.git.${finalAttrs.version}.tar.gz";
33-
hash = "sha256-7aUW0WhoTpkJhj9WjjI2lnq+vOCG53vl/4DckHmLPBo=";
33+
src = fetchgit {
34+
url = "https://repo.dec05eba.com/${pname}";
35+
tag = version;
36+
hash = "sha256-XXSHTS/WWqGblbBLuzHSYCY5FVTDSHBHfBWubmoNSy0=";
3437
};
3538

36-
sourceRoot = ".";
37-
3839
nativeBuildInputs = [
3940
pkg-config
4041
makeWrapper
@@ -49,6 +50,7 @@ stdenv.mkDerivation (finalAttrs: {
4950
ffmpeg
5051
pipewire
5152
wayland
53+
wayland-scanner
5254
vulkan-headers
5355
libdrm
5456
libva
@@ -82,12 +84,17 @@ stdenv.mkDerivation (finalAttrs: {
8284
--suffix PATH : "$out/bin"
8385
'';
8486

87+
passthru.updateScript = gitUpdater { };
88+
8589
meta = {
8690
description = "Screen recorder that has minimal impact on system performance by recording a window using the GPU only";
8791
homepage = "https://git.dec05eba.com/gpu-screen-recorder/about/";
8892
license = lib.licenses.gpl3Only;
8993
mainProgram = "gpu-screen-recorder";
90-
maintainers = [ lib.maintainers.babbaj ];
94+
maintainers = with lib.maintainers; [
95+
babbaj
96+
js6pak
97+
];
9198
platforms = [ "x86_64-linux" ];
9299
};
93-
})
100+
}

pkgs/top-level/all-packages.nix

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12651,12 +12651,6 @@ with pkgs;
1265112651
withDoc = true;
1265212652
};
1265312653

12654-
gpu-screen-recorder = callPackage ../applications/video/gpu-screen-recorder { };
12655-
12656-
gpu-screen-recorder-gtk =
12657-
callPackage ../applications/video/gpu-screen-recorder/gpu-screen-recorder-gtk.nix
12658-
{ };
12659-
1266012654
gpxsee-qt5 = libsForQt5.callPackage ../applications/misc/gpxsee { };
1266112655

1266212656
gpxsee-qt6 = qt6Packages.callPackage ../applications/misc/gpxsee { };

0 commit comments

Comments
 (0)