2021-01-15 04:31:39 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, SDL, which, installTool ? false }:
|
2019-04-29 10:22:28 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "azimuth";
|
2019-06-04 06:37:16 +00:00
|
|
|
version = "1.0.3";
|
2019-04-29 10:22:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdsteele";
|
|
|
|
repo = "azimuth";
|
|
|
|
rev = "v${version}";
|
2019-06-04 06:37:16 +00:00
|
|
|
sha256 = "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r";
|
2019-04-29 10:22:28 +00:00
|
|
|
};
|
|
|
|
|
2019-06-04 06:37:16 +00:00
|
|
|
nativeBuildInputs = [ which ];
|
|
|
|
buildInputs = [ SDL ];
|
|
|
|
|
2022-05-11 09:33:18 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-Wno-error=maybe-uninitialized" ];
|
|
|
|
|
2019-04-29 10:22:28 +00:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace data/azimuth.desktop \
|
|
|
|
--replace Exec=azimuth "Exec=$out/bin/azimuth" \
|
|
|
|
--replace "Version=%AZ_VERSION_NUMBER" "Version=${version}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"BUILDTYPE=release"
|
2019-06-04 06:37:16 +00:00
|
|
|
"INSTALLDIR=$(out)"
|
|
|
|
] ++ (if installTool then ["INSTALLTOOL=true"] else ["INSTALLTOOL=false"]);
|
2019-04-29 10:22:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A metroidvania game using only vectorial graphic";
|
|
|
|
longDescription = ''
|
|
|
|
Azimuth is a metroidvania game, and something of an homage to the previous
|
|
|
|
greats of the genre (Super Metroid in particular). You will need to pilot
|
|
|
|
your ship, explore the inside of the planet, fight enemies, overcome
|
|
|
|
obstacles, and uncover the storyline piece by piece. Azimuth features a
|
|
|
|
huge game world to explore, lots of little puzzles to solve, dozens of
|
|
|
|
weapons and upgrades to find and use, and a wide variety of enemies and
|
|
|
|
bosses to tangle with.
|
|
|
|
'';
|
|
|
|
|
2021-01-15 04:31:39 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://mdsteele.games/azimuth/index.html";
|
2021-01-15 04:31:39 +00:00
|
|
|
maintainers = with lib.maintainers; [ marius851000 ];
|
|
|
|
platforms = lib.platforms.linux;
|
2019-04-29 10:22:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|