about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/julius/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/games/julius/default.nix')
-rw-r--r--nixpkgs/pkgs/games/julius/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/games/julius/default.nix b/nixpkgs/pkgs/games/julius/default.nix
new file mode 100644
index 000000000000..5e1f046d9710
--- /dev/null
+++ b/nixpkgs/pkgs/games/julius/default.nix
@@ -0,0 +1,33 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, SDL2
+, SDL2_mixer
+, cmake
+, libpng
+}:
+
+stdenv.mkDerivation rec {
+  pname = "julius";
+  version = "1.7.0";
+
+  src = fetchFromGitHub {
+    owner = "bvschaik";
+    repo = "julius";
+    rev = "v${version}";
+    hash = "sha256-I5GTaVWzz0ryGLDSS3rzxp+XFVXZa9hZmgwon/6r83A=";
+  };
+
+  nativeBuildInputs = [ cmake ];
+  buildInputs = [ SDL2 SDL2_mixer libpng ];
+
+  meta = with lib; {
+    homepage = "https://github.com/bvschaik/julius";
+    description = "An open source re-implementation of Caesar III";
+    mainProgram = "julius";
+    license = licenses.agpl3Only;
+    maintainers = with maintainers; [ Thra11 ];
+    platforms = platforms.all;
+    broken = stdenv.isDarwin;
+  };
+}