azimuth: 1.0.3 -> 1.0.4 (#525664)

This commit is contained in:
Grimmauld
2026-07-10 16:27:41 +00:00
committed by GitHub
+20 -15
View File
@@ -3,44 +3,49 @@
stdenv,
fetchFromGitHub,
libGL,
SDL,
SDL2,
which,
pkg-config,
installTool ? false,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "azimuth";
version = "1.0.3";
version = "1.0.4";
src = fetchFromGitHub {
owner = "mdsteele";
repo = "azimuth";
rev = "v${finalAttrs.version}";
sha256 = "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r";
tag = "v${finalAttrs.version}";
hash = "sha256-N5Ahetw/zOXDrEiR1umQNF6i3yeawavoLceiU+xD//g=";
};
nativeBuildInputs = [ which ];
strictDeps = true;
__structuredAttrs = true;
nativeBuildInputs = [
pkg-config
which
];
buildInputs = [
libGL
SDL
SDL2
];
env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=maybe-uninitialized" ];
preConfigure = ''
substituteInPlace data/azimuth.desktop \
--replace Exec=azimuth "Exec=$out/bin/azimuth" \
--replace "Version=%AZ_VERSION_NUMBER" "Version=${finalAttrs.version}"
'';
makeFlags = [
"BUILDTYPE=release"
"INSTALLDIR=$(out)"
]
++ (if installTool then [ "INSTALLTOOL=true" ] else [ "INSTALLTOOL=false" ]);
"PREFIX=${placeholder "out"}"
"INSTALLTOOL=${if installTool then "true" else "false"}"
];
enableParallelBuilding = true;
doCheck = true;
checkTarget = "test";
meta = {
description = "Metroidvania game using only vectorial graphic";
mainProgram = "azimuth";