1 { lib, stdenv, fetchFromGitHub, SDL, which, installTool ? false }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r";
14 nativeBuildInputs = [ which ];
15 buildInputs = [ SDL ];
17 env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=maybe-uninitialized" ];
20 substituteInPlace data/azimuth.desktop \
21 --replace Exec=azimuth "Exec=$out/bin/azimuth" \
22 --replace "Version=%AZ_VERSION_NUMBER" "Version=${version}"
28 ] ++ (if installTool then ["INSTALLTOOL=true"] else ["INSTALLTOOL=false"]);
31 enableParallelBuilding = true;
34 description = "Metroidvania game using only vectorial graphic";
35 mainProgram = "azimuth";
37 Azimuth is a metroidvania game, and something of an homage to the previous
38 greats of the genre (Super Metroid in particular). You will need to pilot
39 your ship, explore the inside of the planet, fight enemies, overcome
40 obstacles, and uncover the storyline piece by piece. Azimuth features a
41 huge game world to explore, lots of little puzzles to solve, dozens of
42 weapons and upgrades to find and use, and a wide variety of enemies and
43 bosses to tangle with.
46 license = lib.licenses.gpl3Plus;
47 homepage = "https://mdsteele.games/azimuth/index.html";
48 maintainers = with lib.maintainers; [ marius851000 ];
49 platforms = lib.platforms.linux;