1 { lib, stdenv, fetchFromGitLab, cmake, makeWrapper, SDL2, SDL2_image, SDL2_mixer
4 stdenv.mkDerivation rec {
5 pname = "infra-arcana";
8 src = fetchFromGitLab {
9 owner = "martin-tornqvist";
12 hash = "sha256-MI+wH0+1f41JYXT2hzDs3RrrR3eTfOzgtCa5T6m8oQc=";
15 nativeBuildInputs = [ cmake makeWrapper ];
16 buildInputs = [ SDL2 SDL2_image SDL2_mixer ];
21 mkdir -p $out/{opt/ia,bin}
23 # Remove build artifacts
24 rm -rf CMake* cmake* compile_commands.json CTest* Makefile
27 # IA uses relative paths when looking for assets
28 wrapProgram $out/opt/ia/ia --run "cd $out/opt/ia"
29 ln -s $out/opt/ia/ia $out/bin/infra-arcana
35 homepage = "https://sites.google.com/site/infraarcana";
36 description = "Lovecraftian single-player roguelike game";
37 mainProgram = "infra-arcana";
39 Infra Arcana is a Roguelike set in the early 20th century. The goal is to
40 explore the lair of a dreaded cult called The Church of Starry Wisdom.
42 Buried deep beneath their hallowed grounds lies an artifact called The
43 Shining Trapezohedron - a window to all secrets of the universe. Your
44 ultimate goal is to unearth this artifact.
46 platforms = platforms.linux;
47 maintainers = [ maintainers.kenran ];
48 license = licenses.agpl3Plus;