summary refs log tree commit diff
path: root/pkgs/games/liquidwar/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/games/liquidwar/default.nix')
-rw-r--r--pkgs/games/liquidwar/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/games/liquidwar/default.nix b/pkgs/games/liquidwar/default.nix
new file mode 100644
index 00000000000..86a45282087
--- /dev/null
+++ b/pkgs/games/liquidwar/default.nix
@@ -0,0 +1,36 @@
+a :  
+let 
+  s = import ./src-for-default.nix;
+  buildInputs = with a; [
+    xproto libX11 gmp guile
+    mesa libjpeg libpng
+    expat gettext perl
+    SDL SDL_image SDL_mixer SDL_ttf
+    curl sqlite 
+    libogg libvorbis
+    libXrender
+  ];
+in
+rec {
+  src = a.fetchUrlFromSrcInfo s;
+
+  inherit (s) name;
+  inherit buildInputs;
+  configureFlags = [];
+
+  /* doConfigure should be removed if not needed */
+  phaseNames = ["setVars" "doConfigure" "doMakeInstall"];
+
+  setVars = a.noDepEntry (''
+    export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${a.SDL}/include/SDL"
+  '');
+      
+  meta = {
+    description = "Quick tactics game";
+    maintainers = [
+      a.lib.maintainers.raskin
+    ];
+    platforms = with a.lib.platforms; 
+      linux;
+  };
+}