eepers: fix build on non-linux platforms (#547393)

This commit is contained in:
Gaétan Lepage
2026-07-31 07:42:28 +00:00
committed by GitHub
2 changed files with 12 additions and 4 deletions

View File

@@ -31819,6 +31819,11 @@
{ fingerprint = "E22F 760E E074 E57A 21CB 1733 8DD2 9BB5 2C25 EA09"; }
];
};
zinzilulo = {
name = "zinzilulo";
github = "zinzilulo";
githubId = 214774502;
};
Zirconium419122 = {
name = "Rasmus Liaskar";
github = "Zirconium419122";

View File

@@ -36,7 +36,7 @@ stdenv.mkDerivation (finalAttrs: {
-Wall \
-Wextra \
-gnat2012 \
-o eepers-linux eepers.adb \
-o eepers eepers.adb \
-bargs \
-largs -lraylib -lm \
-pthread
@@ -44,7 +44,7 @@ stdenv.mkDerivation (finalAttrs: {
runHook postBuild
'';
postFixup = ''
postFixup = lib.optionalString stdenv.isLinux ''
patchelf $out/bin/eepers \
--add-needed libwayland-client.so \
--add-needed libwayland-cursor.so \
@@ -62,7 +62,7 @@ stdenv.mkDerivation (finalAttrs: {
runHook preInstall
mkdir -p $out/bin
cp ./eepers-linux $out/bin/eepers
cp ./eepers $out/bin/eepers
cp -r ./assets $out/
@@ -74,7 +74,10 @@ stdenv.mkDerivation (finalAttrs: {
homepage = "https://github.com/tsoding/eepers";
changelog = "https://github.com/tsoding/eepers/blob/${finalAttrs.src.rev}/CHANGELOG.txt";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ GaetanLepage ];
maintainers = with lib.maintainers; [
GaetanLepage
zinzilulo
];
mainProgram = "eepers";
platforms = lib.platforms.all;
};