summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2016-01-18 18:20:09 +0000
committerMichael Raskin <7c6f434c@mail.ru>2016-01-18 18:20:09 +0000
commitc98307873528f7f4cbdbbb2cadb802239f5c1ef8 (patch)
treeafc5c299a84d4058a73ae94d313a98bec04f6111
parent6c2b00bcb25a40c4eeb6ac6e865dbc821a0e8318 (diff)
parent2ad985f3edcd181dac7a083939100d08c1e70d04 (diff)
downloadnixlib-c98307873528f7f4cbdbbb2cadb802239f5c1ef8.tar
nixlib-c98307873528f7f4cbdbbb2cadb802239f5c1ef8.tar.gz
nixlib-c98307873528f7f4cbdbbb2cadb802239f5c1ef8.tar.bz2
nixlib-c98307873528f7f4cbdbbb2cadb802239f5c1ef8.tar.lz
nixlib-c98307873528f7f4cbdbbb2cadb802239f5c1ef8.tar.xz
nixlib-c98307873528f7f4cbdbbb2cadb802239f5c1ef8.tar.zst
nixlib-c98307873528f7f4cbdbbb2cadb802239f5c1ef8.zip
Merge pull request #12454 from otwieracz/pioneer
pioneer: nixpkg added
-rw-r--r--pkgs/games/pioneer/default.nix42
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/games/pioneer/default.nix b/pkgs/games/pioneer/default.nix
new file mode 100644
index 000000000000..fc5bfbb4b705
--- /dev/null
+++ b/pkgs/games/pioneer/default.nix
@@ -0,0 +1,42 @@
+{ fetchFromGitHub, stdenv, automake, curl, libsigcxx, SDL2
+, SDL2_image, freetype, libvorbis, libpng, assimp, mesa
+, autoconf, pkgconfig }:
+
+let
+  version = "20160116";
+  checksum = "07w5yin2xhb0fdlj1aipi64yx6vnr1siahsy0bxvzi06d73ffj6r";
+in
+stdenv.mkDerivation rec {
+  name = "pioneer-${version}";
+
+  src = fetchFromGitHub{
+    owner = "pioneerspacesim";
+    repo = "pioneer";
+    rev = version;
+    sha256 = checksum;
+  };
+
+  buildInputs = [
+    automake curl libsigcxx SDL2 SDL2_image freetype libvorbis
+    libpng assimp mesa autoconf pkgconfig
+  ];
+
+  NIX_CFLAGS_COMPILE = [
+    "-I${SDL2}/include/SDL2"
+  ];
+
+
+  preConfigure = ''
+     export PIONEER_DATA_DIR="$out/share/pioneer/data";
+    ./bootstrap
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Pioneer is a space adventure game set in the Milky Way galaxy at the turn of the 31st century.";
+    homepage = "http://pioneerspacesim.net";
+    license = with licenses; [
+        gpl3 cc-by-sa-30
+    ];
+    platforms = [ "x86_64-linux" "i686-linux" ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index aa24c4bbf754..a14986b6b311 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -14247,6 +14247,8 @@ let
 
   pingus = callPackage ../games/pingus {};
 
+  pioneer = callPackage ../games/pioneer { };
+
   pioneers = callPackage ../games/pioneers { };
 
   planetary_annihilation = callPackage ../games/planetaryannihilation { };