Skip to content

Commit 9f6bddf

Browse files
Chaiskira-bruneau
authored andcommitted
goverlay: 0.7.1 -> 1.2
1 parent b8f8d83 commit 9f6bddf

File tree

2 files changed

+14
-32
lines changed

2 files changed

+14
-32
lines changed

pkgs/tools/graphics/goverlay/default.nix

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
stdenv,
44
fetchFromGitHub,
55
bash,
6-
breeze-qt5,
76
coreutils,
87
fpc,
98
git,
109
gnugrep,
11-
lazarus-qt5,
10+
iproute2,
11+
lazarus-qt6,
1212
libGL,
1313
libGLU,
1414
libnotify,
@@ -17,75 +17,59 @@
1717
nix-update-script,
1818
polkit,
1919
procps,
20+
qt6,
2021
systemd,
2122
util-linux,
2223
vulkan-tools,
2324
which,
2425
wrapQtAppsHook,
25-
writeScriptBin,
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/top-level/all-packages.nix

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

35823582
gdown = with python3Packages; toPythonApplication gdown;
35833583

3584-
goverlay = callPackage ../tools/graphics/goverlay {
3585-
inherit (libsForQt5) libqtpas wrapQtAppsHook;
3586-
inherit (plasma5Packages) breeze-qt5;
3584+
goverlay = qt6Packages.callPackage ../tools/graphics/goverlay {
3585+
inherit (qt6Packages) libqtpas wrapQtAppsHook;
35873586
};
35883587

35893588
gpt4all-cuda = gpt4all.override {

0 commit comments

Comments
 (0)