add build script for nixos support
This commit is contained in:
parent
bb57c8e853
commit
e9f32da983
1
Makefile
1
Makefile
|
@ -1,4 +1,3 @@
|
|||
CC = clang
|
||||
CFLAGS = -Wall -Wextra -std=c99 -pedantic -O2
|
||||
LIBS = -lSDL2 -lm
|
||||
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
source /etc/os-release
|
||||
|
||||
# Don't know how to just have SDL2 available on NixOS
|
||||
if echo $ID | grep "nixos" 2>/dev/null >/dev/null; then
|
||||
nix-shell -p SDL2 --run make
|
||||
else
|
||||
make
|
||||
fi
|
Loading…
Reference in New Issue