Merge pull request 'Add Nix shell file for building' (#221) from Gemini0/blankart:nixos-build-shell into next

Reviewed-on: https://codeberg.org/NepDisk/blankart/pulls/221
This commit is contained in:
NepDisk 2026-03-02 18:33:19 +01:00
commit be046d94fc

8
shell.nix Normal file
View file

@ -0,0 +1,8 @@
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "blankart-env";
buildInputs = [ cmake gcc ninja sdl3 zlib libpng openal libsndfile miniupnpc curl libopenmpt game-music-emu ];
# cmake flags, add -DSRB2_CONFIG_NOVERIFYIWADS=ON to the below command to build without IWAD verification
# Usage from build/: cmake .. $cmakeFlags
cmakeFlags = ["-DSDL3_INCLUDE_DIR=${lib.getDev sdl3}/include -DOPENMPT_INCLUDE_DIR=${lib.getDev libopenmpt}/include"];
}