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
65 lines
1.5 KiB
Nix
65 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
ninja,
|
|
allegro5,
|
|
libglvnd,
|
|
surgescript,
|
|
physfs,
|
|
xorg,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "opensurge";
|
|
version = "0.6.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alemart";
|
|
repo = "opensurge";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-HvpKZ62mYy7XkZOnIn7QRA2rFVREFnKO1NO83aCR76k=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
ninja
|
|
];
|
|
|
|
buildInputs = [
|
|
allegro5
|
|
libglvnd
|
|
physfs
|
|
surgescript
|
|
xorg.libX11
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DGAME_BINDIR=${placeholder "out"}/bin"
|
|
"-DDESKTOP_ICON_PATH=${placeholder "out"}/share/pixmaps"
|
|
"-DDESKTOP_METAINFO_PATH=${placeholder "out"}/share/metainfo"
|
|
"-DDESKTOP_ENTRY_PATH=${placeholder "out"}/share/applications"
|
|
"-DWANT_BUILD_DATE=OFF"
|
|
];
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
# Darwin fails with "Critical error: required built-in appearance SystemAppearance not found"
|
|
doInstallCheck = !stdenv.hostPlatform.isDarwin;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
mainProgram = "opensurge";
|
|
description = "Fun 2D retro platformer inspired by Sonic games and a game creation system";
|
|
homepage = "https://opensurge2d.org/";
|
|
downloadPage = "https://github.com/alemart/opensurge";
|
|
changelog = "https://github.com/alemart/opensurge/blob/v${finalAttrs.version}/CHANGES.md";
|
|
license = lib.licenses.gpl3Only;
|
|
platforms = lib.platforms.all;
|
|
maintainers = [ ];
|
|
};
|
|
})
|