Merge pull request #150746 from luxferresum/nanosaur
This commit is contained in:
commit
7248ffef95
3 changed files with 56 additions and 0 deletions
|
@ -7072,6 +7072,12 @@
|
|||
fingerprint = "BA3A 5886 AE6D 526E 20B4 57D6 6A37 DF94 8318 8492";
|
||||
}];
|
||||
};
|
||||
lux = {
|
||||
email = "lux@lux.name";
|
||||
githubId = 1208273;
|
||||
matrix = "@lux:ontheblueplanet.com";
|
||||
name = "Lux";
|
||||
};
|
||||
luz = {
|
||||
email = "luz666@daum.net";
|
||||
github = "Luz";
|
||||
|
|
48
pkgs/games/nanosaur/default.nix
Normal file
48
pkgs/games/nanosaur/default.nix
Normal file
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -30685,6 +30685,8 @@ with pkgs;
|
|||
|
||||
naev = callPackage ../games/naev { };
|
||||
|
||||
nanosaur = callPackage ../games/nanosaur { };
|
||||
|
||||
nethack = callPackage ../games/nethack { };
|
||||
|
||||
nethack-qt = callPackage ../games/nethack {
|
||||
|
|
Loading…
Reference in a new issue