forked from black-sliver/PopTracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
34 lines (31 loc) · 673 Bytes
/
Copy pathshell.nix
File metadata and controls
34 lines (31 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ pkgs ? import <nixpkgs> {} }:
let
libX11 =
if builtins.hasAttr "libx11" pkgs then
pkgs.libx11
else
let
xorgLibX11 = builtins.tryEval pkgs.xorg.libX11;
in
if xorgLibX11.success then
xorgLibX11.value
else
throw "Could not find libX11 (neither pkgs.libx11 nor pkgs.xorg.libX11)"
;
in
pkgs.mkShell {
buildInputs = [
pkgs.zlib
pkgs.cmake
pkgs.sdl2-compat
pkgs.SDL2_image
pkgs.SDL2_ttf
pkgs.openssl
libX11
];
shellHook = ''
echo "PopTracker build environment loaded"
echo "Run: make native CONF=RELEASE"
echo "RUN: ./build/<platform>/poptracker"
'';
}