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