Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

goverlay: 0.7.1 -> 1.2 #368202

Merged
merged 4 commits into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2505.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@
- 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.
- 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.

- GOverlay has been updated to 1.2, please check the [upstream changelog](https://github.com/benjamimgois/goverlay/releases) for more details.

- `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.

- `services.avahi.ipv6` now defaults to true.
Expand Down
55 changes: 19 additions & 36 deletions pkgs/tools/graphics/goverlay/default.nix
Original file line number Diff line number Diff line change
@@ -1,91 +1,75 @@
{
lib,
writeScriptBin,
bash,
stdenv,
fetchFromGitHub,
bash,
coreutils,
fpc,
lazarus-qt5,
wrapQtAppsHook,
breeze-qt5,
git,
gnugrep,
iproute2,
lazarus-qt6,
libGL,
libGLU,
libnotify,
libqtpas,
libX11,
coreutils,
git,
gnugrep,
libnotify,
nix-update-script,
polkit,
procps,
qt6,
systemd,
util-linux,
vulkan-tools,
which,
nix-update-script,
wrapQtAppsHook,
}:

let
# Finds data files using the XDG Base Directory Specification
# See https://specifications.freedesktop.org/basedir-spec/latest
find-xdg-data-files = writeScriptBin "find-xdg-data-files" ''
#!${bash}/bin/sh
IFS=:
for xdg_data_dir in ''${XDG_DATA_HOME:-$HOME/.local/share}:''${XDG_DATA_DIRS:-/usr/local/share:/usr/share}; do
if [ -f "$xdg_data_dir/$1" ]; then
echo "$xdg_data_dir/$1"
fi
done
'';
in
stdenv.mkDerivation rec {
pname = "goverlay";
version = "0.7.1";
version = "1.2";

src = fetchFromGitHub {
owner = "benjamimgois";
repo = pname;
rev = version;
sha256 = "sha256-oXkGrMHjs8uui0pzGYW8jnttet/5IX0r8eat0n5saFk=";
sha256 = "sha256-tSpM+XLlFQLfL750LTNWbWFg1O+0fSfsPRXuRCm/KlY=";
};

outputs = [
"out"
"man"
];

patches = [
# Find MangoHud & vkBasalt Vulkan layers using the XDG Base Directory Specification
./find-xdg-data-files.patch
];

postPatch = ''
substituteInPlace Makefile \
--replace 'prefix = /usr/local' "prefix = $out"
--replace-fail 'prefix = /usr/local' "prefix = $out"

substituteInPlace overlayunit.pas \
--replace '/usr/share/icons/hicolor/128x128/apps/goverlay.png' "$out/share/icons/hicolor/128x128/apps/goverlay.png"
--replace-fail '/usr/share/icons/hicolor/128x128/apps/goverlay.png' "$out/share/icons/hicolor/128x128/apps/goverlay.png" \
--replace-fail '/sbin/ip' "${lib.getExe' iproute2 "ip"}" \
--replace-fail '/bin/bash' "${lib.getExe' bash "bash"}"
'';

nativeBuildInputs = [
fpc
lazarus-qt5
lazarus-qt6
wrapQtAppsHook
];

buildInputs = [
breeze-qt5
libGL
libGLU
libqtpas
libX11
qt6.qtbase
];

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

buildPhase = ''
runHook preBuild
HOME=$(mktemp -d) lazbuild --lazarusdir=${lazarus-qt5}/share/lazarus -B goverlay.lpi
HOME=$(mktemp -d) lazbuild --lazarusdir=${lazarus-qt6}/share/lazarus -B goverlay.lpi
runHook postBuild
'';

Expand All @@ -94,7 +78,6 @@ stdenv.mkDerivation rec {
lib.makeBinPath [
bash
coreutils
find-xdg-data-files
git
gnugrep
libnotify
Expand Down
40 changes: 0 additions & 40 deletions pkgs/tools/graphics/goverlay/find-xdg-data-files.patch

This file was deleted.

5 changes: 2 additions & 3 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3581,9 +3581,8 @@ with pkgs;

gdown = with python3Packages; toPythonApplication gdown;

goverlay = callPackage ../tools/graphics/goverlay {
inherit (libsForQt5) libqtpas wrapQtAppsHook;
inherit (plasma5Packages) breeze-qt5;
goverlay = qt6Packages.callPackage ../tools/graphics/goverlay {
inherit (qt6Packages) libqtpas wrapQtAppsHook;
};

gpt4all-cuda = gpt4all.override {
Expand Down
Loading