push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
{
lib,
mkDerivation,
fetchFromGitHub,
qmake,
qtbase,
qtmultimedia,
qttools,
}:
mkDerivation {
pname = "qgo";
version = "unstable-2017-12-18";
meta = with lib; {
description = "Go client based on Qt5";
mainProgram = "qgo";
longDescription = ''
qGo is a Go Client based on Qt 5. It supports playing online at
IGS-compatible servers (including some special tweaks for WING and LGS,
also NNGS was reported to work) and locally against gnugo (or other
GTP-compliant engines). It also has rudimentary support for editing SGF
files and parital support for CyberORO/WBaduk, Tygem, Tom, and eWeiqi
(developers of these backends are currently inactive, everybody is welcome
to take them over).
Go is an ancient Chinese board game. It's called "(Wei Qi)" in
Chinese, "(Yi Go)" in Japanese, "(Baduk)" in Korean.
'';
homepage = "https://github.com/pzorin/qgo";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ zalakain ];
};
src = fetchFromGitHub {
owner = "pzorin";
repo = "qgo";
rev = "bef526dda4c79686edd95c88cc68de24f716703c";
sha256 = "1xzkayclmhsi07p9mnbf8185jw8n5ikxp2mik3x8qz1i6rmrfl5b";
};
patches = [ ./fix-paths.patch ];
postPatch = ''
sed -i 's|@out@|'"''${out}"'|g' src/src.pro src/defines.h
'';
nativeBuildInputs = [
qmake
qttools
];
buildInputs = [
qtbase
qtmultimedia
];
}

View File

@@ -0,0 +1,50 @@
diff --git a/src/defines.h b/src/defines.h
index 5d40955..82d0627 100644
--- a/src/defines.h
+++ b/src/defines.h
@@ -48,7 +48,7 @@
* GNUgo default level
*/
#define DEFAULT_ENGINE "gnugo"
-#define DEFAULT_ENGINE_PATH "/usr/games/"
+#define DEFAULT_ENGINE_PATH ""
#define DEFAULT_ENGINE_OPTIONS "--mode gtp --quiet --level 10"
@@ -220,8 +220,8 @@ extern QString applicationPath;
#define SOUND_PATH_PREFIX "qGo.app/Contents/Resources/Sounds/"
#define TRANSLATIONS_PATH "qGo.app/Contents/Resources/Translations/"
#else
- #define SOUND_PATH_PREFIX "/usr/share/qgo/sounds/"
- #define TRANSLATIONS_PATH "/usr/share/qgo/languages"
+ #define SOUND_PATH_PREFIX "/@out@/share/qgo/sounds/"
+ #define TRANSLATIONS_PATH "/@out@/share/qgo/languages"
#endif
#endif
diff --git a/src/src.pro b/src/src.pro
index f989ce7..b7d691f 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -165,17 +165,17 @@ SOURCES += displayboard.cpp \
newgamedialog.cpp
unix*:!macx-* {
- QGO_INSTALL_PATH = /usr/share/qgo
- QGO_INSTALL_BIN_PATH = /usr/bin
+ QGO_INSTALL_PATH = @out@/share/qgo
+ QGO_INSTALL_BIN_PATH = /@out@/bin
- icon.path = /usr/share/pixmaps
+ icon.path = @out@/share/pixmaps
icon.files = resources/pics/qgo.png
icon.files += resources/pics/qgo_16x16.xpm
icon.files += resources/pics/qgo_32x32.xpm
icon.files += resources/pics/qgo_48x48.png
icon.files += resources/pics/qgo_48x48.xpm
INSTALLS += icon
- desktopfile.path = /usr/share/applications
+ desktopfile.path = @out@/share/applications
desktopfile.files = qgo.desktop
INSTALLS += desktopfile
}