mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
eepers: fix build on non-linux platforms (#547393)
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user