about summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorLassulus <github@lassul.us>2022-04-05 13:37:50 +0100
committerGitHub <noreply@github.com>2022-04-05 13:37:50 +0100
commit1eaa0a1212092581a63ca8a705b04f4f18ee1eef (patch)
tree629fa13edfd33b7143d024185064c5ade14c5aee /pkgs/games
parentdd37fc3587d78e370298a844bf764c8b797ee1ce (diff)
parent4f209920e3af0e402de40f164c1e5a53e8a3d4e7 (diff)
Merge pull request #152454 from luxferresum/bugdom
bugdom: init at 1.3.1
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/bugdom/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/games/bugdom/default.nix b/pkgs/games/bugdom/default.nix
new file mode 100644
index 0000000000000..57a1e41409023
--- /dev/null
+++ b/pkgs/games/bugdom/default.nix
@@ -0,0 +1,44 @@
+{ lib, stdenv, fetchFromGitHub, SDL2, cmake, makeWrapper }:
+
+stdenv.mkDerivation rec {
+  pname = "bugdom";
+  version = "1.3.1";
+
+  src = fetchFromGitHub {
+    owner = "jorio";
+    repo = pname;
+    rev = version;
+    sha256 = "sha256:1371inw11rzfrxmc3v4gv5axp56bxjbcr0mhqm4x839401bfq5mf";
+    fetchSubmodules = true;
+  };
+
+  buildInputs = [
+    SDL2
+  ];
+
+  nativeBuildInputs = [
+    cmake
+    makeWrapper
+  ];
+
+  installPhase = ''
+    runHook preInstall
+
+    mkdir -p $out/share/bugdom
+    mv Data $out/share/bugdom
+    install -Dm755 {.,$out/bin}/Bugdom
+    wrapProgram $out/bin/Bugdom --run "cd $out/share/bugdom"
+
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    description = "A port of Bugdom, a 1999 Macintosh game by Pangea Software, for modern operating systems";
+    homepage = "https://github.com/jorio/Bugdom";
+    license = with licenses; [
+      cc-by-sa-40
+    ];
+    maintainers = with maintainers; [ lux ];
+    platforms = platforms.linux;
+  };
+}