Files
nixpkgs/pkgs/by-name/so/solarus/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

84 lines
1.5 KiB
Nix

{
lib,
stdenv,
fetchFromGitLab,
cmake,
ninja,
luajit,
SDL2,
SDL2_image,
SDL2_ttf,
physfs,
glm,
openal,
libmodplug,
libvorbis,
# tests
solarus-quest-editor,
solarus-launcher,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "solarus";
version = "2.0.1";
src = fetchFromGitLab {
owner = "solarus-games";
repo = "solarus";
rev = "e70e3df7369d690615fc4c9b3f8dfa00066c5e87";
hash = "sha256-NOHv4b+r2WnyHEVLtcox+8+3Q3TtSDHB7vpKSTDHVKM=";
};
outputs = [
"out"
"lib"
"dev"
];
strictDeps = true;
nativeBuildInputs = [
cmake
ninja
];
buildInputs = [
luajit
SDL2
SDL2_image
SDL2_ttf
physfs
openal
libmodplug
libvorbis
glm
];
cmakeFlags = [
(lib.cmakeFeature "CMAKE_CXX_FLAGS" "-DGLM_ENABLE_EXPERIMENTAL")
(lib.cmakeFeature "CMAKE_INSTALL_DATADIR" "${placeholder "lib"}/share")
];
passthru.tests = {
inherit solarus-quest-editor solarus-launcher;
};
meta = {
description = "Zelda-like ARPG game engine";
longDescription = ''
Solarus is a game engine for Zelda-like ARPG games written in lua.
Many full-fledged games have been writen for the engine.
'';
homepage = "https://www.solarus-games.org";
mainProgram = "solarus-run";
license = with lib.licenses; [
# code
gpl3Plus
# assets
cc-by-sa-30
cc-by-sa-40
];
maintainers = with lib.maintainers; [ marcin-serwin ];
platforms = lib.platforms.linux;
};
})