mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-30 14:11:21 +00:00
infra-arcana: init at 21.0.1
This commit is contained in:
parent
2dc9fa4455
commit
c6f4366305
60
pkgs/games/infra-arcana/default.nix
Normal file
60
pkgs/games/infra-arcana/default.nix
Normal file
@ -0,0 +1,60 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitLab
|
||||
, cmake
|
||||
, makeWrapper
|
||||
, SDL2
|
||||
, SDL2_image
|
||||
, SDL2_mixer
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "infra-arcana";
|
||||
version = "21.0.1";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "martin-tornqvist";
|
||||
repo = "ia";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-E2ssxdYa27qRk5cCmM7A5VqXGExwXHblR34y+rOUBRI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake makeWrapper ];
|
||||
buildInputs = [ SDL2 SDL2_image SDL2_mixer ];
|
||||
|
||||
# Some parts of the game don't compile with glibc 2.34. As soon as
|
||||
# this is fixed upstream we can switch to the default build flags.
|
||||
buildFlags = [ "ia" ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/{opt/ia,bin}
|
||||
|
||||
# Remove build artifacts
|
||||
rm -rf CMake* cmake* compile_commands.json CTest* Makefile
|
||||
cp -ra * $out/opt/ia
|
||||
|
||||
# Uses relative paths when looking for assets
|
||||
wrapProgram $out/opt/ia/ia --run "cd $out/opt/ia"
|
||||
ln -s $out/opt/ia/ia $out/bin/infra-arcana
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://sites.google.com/site/infraarcana";
|
||||
description = "A Lovecraftian single-player roguelike game";
|
||||
longDescription = ''
|
||||
Infra Arcana is a Roguelike set in the early 20th century. The goal is to
|
||||
explore the lair of a dreaded cult called The Church of Starry Wisdom.
|
||||
|
||||
Buried deep beneath their hallowed grounds lies an artifact called The
|
||||
Shining Trapezohedron - a window to all secrets of the universe. Your
|
||||
ultimate goal is to unearth this artifact.
|
||||
'';
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.kenran ];
|
||||
license = licenses.agpl3Plus;
|
||||
};
|
||||
}
|
@ -31961,6 +31961,8 @@ with pkgs;
|
||||
|
||||
icbm3d = callPackage ../games/icbm3d { };
|
||||
|
||||
infra-arcana = callPackage ../games/infra-arcana { };
|
||||
|
||||
ingen = callPackage ../applications/audio/ingen { };
|
||||
|
||||
ideogram = callPackage ../applications/graphics/ideogram { };
|
||||
|
Loading…
Reference in New Issue
Block a user