From 950908b6a0ef46934f9fe91e8e38323e27caa801 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 8 Dec 2015 12:01:39 +0100 Subject: nix expressions --- RCade.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 RCade.nix (limited to 'RCade.nix') diff --git a/RCade.nix b/RCade.nix new file mode 100644 index 0000000..ec21960 --- /dev/null +++ b/RCade.nix @@ -0,0 +1,23 @@ +{ stdenv +, SDL +, SDL_ttf +, SDL_image +, SDL_gfx +, SDL_mixer +}: + +stdenv.mkDerivation { + name = "RCade"; + src = ./.; + + buildInputs = [ SDL SDL_ttf SDL_image SDL_gfx SDL_mixer ]; + + preConfigure = '' + export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${SDL}/include/SDL" + ''; + + installPhase = '' + mkdir -p $out/bin + install -m 555 Game $out/bin + ''; +} -- cgit v1.2.3