From 4f209920e3af0e402de40f164c1e5a53e8a3d4e7 Mon Sep 17 00:00:00 2001 From: Lux Date: Tue, 28 Dec 2021 13:51:15 +0100 Subject: [PATCH] bugdom: init at 1.3.1 Co-authored-by: Christoph Neidahl --- pkgs/games/bugdom/default.nix | 44 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 46 insertions(+) create mode 100644 pkgs/games/bugdom/default.nix diff --git a/pkgs/games/bugdom/default.nix b/pkgs/games/bugdom/default.nix new file mode 100644 index 000000000000..57a1e4140902 --- /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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 15186d004ddf..acea479a75f0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -30262,6 +30262,8 @@ with pkgs; btanks = callPackage ../games/btanks { }; + bugdom = callPackage ../games/bugdom { }; + bzflag = callPackage ../games/bzflag { inherit (darwin.apple_sdk.frameworks) Carbon CoreServices; };