diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-12-08 12:01:39 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-12-08 12:01:39 +0100 |
commit | 950908b6a0ef46934f9fe91e8e38323e27caa801 (patch) | |
tree | e8a72259b987dd6b12069d7151f23ff517bb72ac | |
parent | b7a2add2d786296d993102ac0cb939ba17107026 (diff) | |
download | RCade-950908b6a0ef46934f9fe91e8e38323e27caa801.tar RCade-950908b6a0ef46934f9fe91e8e38323e27caa801.tar.gz RCade-950908b6a0ef46934f9fe91e8e38323e27caa801.tar.bz2 RCade-950908b6a0ef46934f9fe91e8e38323e27caa801.tar.xz RCade-950908b6a0ef46934f9fe91e8e38323e27caa801.zip |
nix expressions
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | RCade.nix | 23 | ||||
-rw-r--r-- | default.nix | 5 |
3 files changed, 29 insertions, 0 deletions
@@ -4,3 +4,4 @@ old releases | |||
4 | save/** | 4 | save/** |
5 | Game | 5 | Game |
6 | .depend | 6 | .depend |
7 | result | ||
diff --git a/RCade.nix b/RCade.nix new file mode 100644 index 0000000..ec21960 --- /dev/null +++ b/RCade.nix | |||
@@ -0,0 +1,23 @@ | |||
1 | { stdenv | ||
2 | , SDL | ||
3 | , SDL_ttf | ||
4 | , SDL_image | ||
5 | , SDL_gfx | ||
6 | , SDL_mixer | ||
7 | }: | ||
8 | |||
9 | stdenv.mkDerivation { | ||
10 | name = "RCade"; | ||
11 | src = ./.; | ||
12 | |||
13 | buildInputs = [ SDL SDL_ttf SDL_image SDL_gfx SDL_mixer ]; | ||
14 | |||
15 | preConfigure = '' | ||
16 | export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${SDL}/include/SDL" | ||
17 | ''; | ||
18 | |||
19 | installPhase = '' | ||
20 | mkdir -p $out/bin | ||
21 | install -m 555 Game $out/bin | ||
22 | ''; | ||
23 | } | ||
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..bb7d239 --- /dev/null +++ b/default.nix | |||
@@ -0,0 +1,5 @@ | |||
1 | { pkgs ? import <nixpkgs> {} }: | ||
2 | |||
3 | { | ||
4 | RCade = pkgs.callPackage ./RCade.nix {}; | ||
5 | } | ||