1 { lib, stdenv, fetchFromGitHub, SDL2, cmake, makeWrapper }:
3 stdenv.mkDerivation rec {
5 version = "unstable-2021-12-03";
7 src = fetchFromGitHub {
10 rev = "b567a3e6d7fd1cbc43800cfaa1bd82f31c6d9fae";
11 sha256 = "sha256-P/o6uSwUV6O8u8XNXN9YyA8XlgEUkqGj3SC+oD2/GKQ=";
12 fetchSubmodules = true;
15 nativeBuildInputs = [ cmake makeWrapper ];
21 cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
30 makeWrapper $out/Nanosaur $out/bin/Nanosaur --chdir "$out"
34 description = "A port of Nanosaur, a 1998 Macintosh game by Pangea Software, for modern operating systems";
36 Nanosaur is a 1998 Macintosh game by Pangea Software.
37 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.
38 And you get to shoot at T-Rexes with nukes.
40 homepage = "https://github.com/jorio/Nanosaur";
41 license = with licenses; [
44 maintainers = with maintainers; [ lux ];
45 platforms = platforms.linux;