Skip to content

Commit 8f24b0a

Browse files
authored
goverlay: 0.7.1 -> 1.2 (NixOS#368202)
2 parents d283dea + 34e62a3 commit 8f24b0a

File tree

4 files changed

+23
-79
lines changed

4 files changed

+23
-79
lines changed

nixos/doc/manual/release-notes/rl-2505.section.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@
269269
- Overriding Wayland compositor is possible using `enableWaylandSession` option, but you might need to take care [`xfce4-session`](https://gitlab.xfce.org/xfce/xfce4-session/-/merge_requests/49), [`dbus-update-activation-environment`](https://github.com/labwc/labwc/blob/eaf11face68ee1f1bcc7ce1498304ca8c108c8ba/src/config/session.c#L234) and [`systemctl --user import-environment`](https://github.com/labwc/labwc/blob/eaf11face68ee1f1bcc7ce1498304ca8c108c8ba/src/config/session.c#L239) on startup.
270270
- For new Xfce installations, default panel layout has [changed](https://gitlab.xfce.org/xfce/xfce4-panel/-/merge_requests/158/diffs) to not include external panel plugins by default. You can still add them yourself using the "Panel Preferences" dialog.
271271

272+
- GOverlay has been updated to 1.2, please check the [upstream changelog](https://github.com/benjamimgois/goverlay/releases) for more details.
273+
272274
- `networking.wireguard` now has an optional networkd backend. It is enabled by default when `networking.useNetworkd` is enabled, and it can be enabled alongside scripted networking with `networking.wireguard.useNetworkd`. Some `networking.wireguard` options have slightly different behavior with the networkd and script-based backends, documented in each option.
273275

274276
- `services.avahi.ipv6` now defaults to true.

pkgs/tools/graphics/goverlay/default.nix

Lines changed: 19 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,75 @@
11
{
22
lib,
3-
writeScriptBin,
4-
bash,
53
stdenv,
64
fetchFromGitHub,
5+
bash,
6+
coreutils,
77
fpc,
8-
lazarus-qt5,
9-
wrapQtAppsHook,
10-
breeze-qt5,
8+
git,
9+
gnugrep,
10+
iproute2,
11+
lazarus-qt6,
1112
libGL,
1213
libGLU,
14+
libnotify,
1315
libqtpas,
1416
libX11,
15-
coreutils,
16-
git,
17-
gnugrep,
18-
libnotify,
17+
nix-update-script,
1918
polkit,
2019
procps,
20+
qt6,
2121
systemd,
2222
util-linux,
2323
vulkan-tools,
2424
which,
25-
nix-update-script,
25+
wrapQtAppsHook,
2626
}:
2727

28-
let
29-
# Finds data files using the XDG Base Directory Specification
30-
# See https://specifications.freedesktop.org/basedir-spec/latest
31-
find-xdg-data-files = writeScriptBin "find-xdg-data-files" ''
32-
#!${bash}/bin/sh
33-
IFS=:
34-
for xdg_data_dir in ''${XDG_DATA_HOME:-$HOME/.local/share}:''${XDG_DATA_DIRS:-/usr/local/share:/usr/share}; do
35-
if [ -f "$xdg_data_dir/$1" ]; then
36-
echo "$xdg_data_dir/$1"
37-
fi
38-
done
39-
'';
40-
in
4128
stdenv.mkDerivation rec {
4229
pname = "goverlay";
43-
version = "0.7.1";
30+
version = "1.2";
4431

4532
src = fetchFromGitHub {
4633
owner = "benjamimgois";
4734
repo = pname;
4835
rev = version;
49-
sha256 = "sha256-oXkGrMHjs8uui0pzGYW8jnttet/5IX0r8eat0n5saFk=";
36+
sha256 = "sha256-tSpM+XLlFQLfL750LTNWbWFg1O+0fSfsPRXuRCm/KlY=";
5037
};
5138

5239
outputs = [
5340
"out"
5441
"man"
5542
];
5643

57-
patches = [
58-
# Find MangoHud & vkBasalt Vulkan layers using the XDG Base Directory Specification
59-
./find-xdg-data-files.patch
60-
];
61-
6244
postPatch = ''
6345
substituteInPlace Makefile \
64-
--replace 'prefix = /usr/local' "prefix = $out"
46+
--replace-fail 'prefix = /usr/local' "prefix = $out"
6547
6648
substituteInPlace overlayunit.pas \
67-
--replace '/usr/share/icons/hicolor/128x128/apps/goverlay.png' "$out/share/icons/hicolor/128x128/apps/goverlay.png"
49+
--replace-fail '/usr/share/icons/hicolor/128x128/apps/goverlay.png' "$out/share/icons/hicolor/128x128/apps/goverlay.png" \
50+
--replace-fail '/sbin/ip' "${lib.getExe' iproute2 "ip"}" \
51+
--replace-fail '/bin/bash' "${lib.getExe' bash "bash"}"
6852
'';
6953

7054
nativeBuildInputs = [
7155
fpc
72-
lazarus-qt5
56+
lazarus-qt6
7357
wrapQtAppsHook
7458
];
7559

7660
buildInputs = [
77-
breeze-qt5
7861
libGL
7962
libGLU
8063
libqtpas
8164
libX11
65+
qt6.qtbase
8266
];
8367

8468
NIX_LDFLAGS = "-lGLU -rpath ${lib.makeLibraryPath buildInputs}";
8569

8670
buildPhase = ''
8771
runHook preBuild
88-
HOME=$(mktemp -d) lazbuild --lazarusdir=${lazarus-qt5}/share/lazarus -B goverlay.lpi
72+
HOME=$(mktemp -d) lazbuild --lazarusdir=${lazarus-qt6}/share/lazarus -B goverlay.lpi
8973
runHook postBuild
9074
'';
9175

@@ -94,7 +78,6 @@ stdenv.mkDerivation rec {
9478
lib.makeBinPath [
9579
bash
9680
coreutils
97-
find-xdg-data-files
9881
git
9982
gnugrep
10083
libnotify

pkgs/tools/graphics/goverlay/find-xdg-data-files.patch

Lines changed: 0 additions & 40 deletions
This file was deleted.

pkgs/top-level/all-packages.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3579,9 +3579,8 @@ with pkgs;
35793579

35803580
gdown = with python3Packages; toPythonApplication gdown;
35813581

3582-
goverlay = callPackage ../tools/graphics/goverlay {
3583-
inherit (libsForQt5) libqtpas wrapQtAppsHook;
3584-
inherit (plasma5Packages) breeze-qt5;
3582+
goverlay = qt6Packages.callPackage ../tools/graphics/goverlay {
3583+
inherit (qt6Packages) libqtpas wrapQtAppsHook;
35853584
};
35863585

35873586
gpt4all-cuda = gpt4all.override {

0 commit comments

Comments
 (0)