diff options
author | Lux <lux@lux.name> | 2021-12-14 19:50:33 +0100 |
---|---|---|
committer | Lux <lux@lux.name> | 2021-12-15 20:47:44 +0100 |
commit | 98f026b5d12c3faae9959c0e9ab0bc179243ec93 (patch) | |
tree | e9c28f33eef8713b2ce063e3181452656ddc6afd /pkgs/games | |
parent | 5ca3d755e171a11c8bced8f3721bca949dc27885 (diff) |
nanosaur: init at unstable-2021-12-03
Co-authored-by: legendofmiracles <30902201+legendofmiracles@users.noreply.github.com>
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/nanosaur/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/games/nanosaur/default.nix b/pkgs/games/nanosaur/default.nix new file mode 100644 index 000000000000..d5ebee755da6 --- /dev/null +++ b/pkgs/games/nanosaur/default.nix @@ -0,0 +1,48 @@ +{ lib, stdenv, fetchFromGitHub, SDL2, cmake, makeWrapper }: + +stdenv.mkDerivation rec { + pname = "nanosaur"; + version = "unstable-2021-12-03"; + + src = fetchFromGitHub { + owner = "jorio"; + repo = pname; + rev = "b567a3e6d7fd1cbc43800cfaa1bd82f31c6d9fae"; + sha256 = "sha256-P/o6uSwUV6O8u8XNXN9YyA8XlgEUkqGj3SC+oD2/GKQ="; + fetchSubmodules = true; + }; + + buildInputs = [ + SDL2 + cmake + makeWrapper + ]; + + configurePhase = '' + cmake -S . -B build -DCMAKE_BUILD_TYPE=Release + ''; + + buildPhase = '' + cmake --build build + ''; + + installPhase = '' + mv build $out + makeWrapper $out/Nanosaur $out/bin/Nanosaur --run "cd $out" + ''; + + meta = with lib; { + description = "A port of Nanosaur, a 1998 Macintosh game by Pangea Software, for modern operating systems"; + longDescription = '' + Nanosaur is a 1998 Macintosh game by Pangea Software. + In it, you’re a cybernetic dinosaur from the future who’s sent back in time 20 minutes before a giant asteroid hits the Earth. + And you get to shoot at T-Rexes with nukes. + ''; + homepage = "https://github.com/jorio/Nanosaur"; + license = with licenses; [ + cc-by-sa-40 + ]; + maintainers = with maintainers; [ lux ]; + platforms = platforms.linux; + }; +} |