summary refs log tree commit diff
path: root/pkgs/games/opendune
diff options
context:
space:
mode:
authorFernando José Pando <nand0p@users.noreply.github.com>2018-06-05 14:39:24 -0400
committerxeji <36407913+xeji@users.noreply.github.com>2018-06-05 20:39:24 +0200
commit3cc263ea132572ecb498b11e4baa8efb2faa3f89 (patch)
tree3c78767b97719215cf8fc1e1930eed5d7754ed55 /pkgs/games/opendune
parent999871400b97109c78eaf2e88fa61c6e7793e07e (diff)
downloadnixpkgs-3cc263ea132572ecb498b11e4baa8efb2faa3f89.tar
nixpkgs-3cc263ea132572ecb498b11e4baa8efb2faa3f89.tar.gz
nixpkgs-3cc263ea132572ecb498b11e4baa8efb2faa3f89.tar.bz2
nixpkgs-3cc263ea132572ecb498b11e4baa8efb2faa3f89.tar.lz
nixpkgs-3cc263ea132572ecb498b11e4baa8efb2faa3f89.tar.xz
nixpkgs-3cc263ea132572ecb498b11e4baa8efb2faa3f89.tar.zst
nixpkgs-3cc263ea132572ecb498b11e4baa8efb2faa3f89.zip
opendune: init at 0.9 (#41415)
Diffstat (limited to 'pkgs/games/opendune')
-rw-r--r--pkgs/games/opendune/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/games/opendune/default.nix b/pkgs/games/opendune/default.nix
new file mode 100644
index 00000000000..7b848086794
--- /dev/null
+++ b/pkgs/games/opendune/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchFromGitHub, SDL, SDL_image, SDL_mixer, binutils }:
+
+# - set the opendune configuration at ~/.config/opendune/opendune.ini:
+#     [opendune]
+#     datadir=/path/to/opendune-data
+# - download dune2 into [datadir] http://www.bestoldgames.net/eng/old-games/dune-2.php
+
+stdenv.mkDerivation rec {
+  name = "opendune-${version}";
+  version = "0.9";
+
+  src = fetchFromGitHub {
+    owner = "OpenDUNE";
+    repo = "OpenDUNE";
+    rev = version;
+    sha256 = "15rvrnszdy3db8s0dmb696l4isb3x2cpj7wcl4j09pdi59pc8p37";
+  };
+
+  buildInputs = [ SDL SDL_image SDL_mixer ];
+
+  installPhase = ''
+    install -m 555 -D bin/opendune $out/bin/opendune
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Dune, Reinvented";
+    homepage = https://github.com/OpenDUNE/OpenDUNE;
+    license = licenses.gpl2;
+    maintainers = [ maintainers.nand0p ];
+    platforms = platforms.linux;
+  };
+}