nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 51 lines 1.6 kB view raw
1{ lib, stdenv, fetchFromGitHub, SDL, which, installTool ? false }: 2 3stdenv.mkDerivation rec { 4 pname = "azimuth"; 5 version = "1.0.3"; 6 7 src = fetchFromGitHub { 8 owner = "mdsteele"; 9 repo = "azimuth"; 10 rev = "v${version}"; 11 sha256 = "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r"; 12 }; 13 14 nativeBuildInputs = [ which ]; 15 buildInputs = [ SDL ]; 16 17 env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=maybe-uninitialized" ]; 18 19 preConfigure = '' 20 substituteInPlace data/azimuth.desktop \ 21 --replace Exec=azimuth "Exec=$out/bin/azimuth" \ 22 --replace "Version=%AZ_VERSION_NUMBER" "Version=${version}" 23 ''; 24 25 makeFlags = [ 26 "BUILDTYPE=release" 27 "INSTALLDIR=$(out)" 28 ] ++ (if installTool then ["INSTALLTOOL=true"] else ["INSTALLTOOL=false"]); 29 30 31 enableParallelBuilding = true; 32 33 meta = { 34 description = "A metroidvania game using only vectorial graphic"; 35 longDescription = '' 36 Azimuth is a metroidvania game, and something of an homage to the previous 37 greats of the genre (Super Metroid in particular). You will need to pilot 38 your ship, explore the inside of the planet, fight enemies, overcome 39 obstacles, and uncover the storyline piece by piece. Azimuth features a 40 huge game world to explore, lots of little puzzles to solve, dozens of 41 weapons and upgrades to find and use, and a wide variety of enemies and 42 bosses to tangle with. 43 ''; 44 45 license = lib.licenses.gpl3Plus; 46 homepage = "https://mdsteele.games/azimuth/index.html"; 47 maintainers = with lib.maintainers; [ marius851000 ]; 48 platforms = lib.platforms.linux; 49 }; 50 51}