nixpkgs-suyu/pkgs/games/otto-matic/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
972 B
Nix
Raw Normal View History

2021-12-29 20:24:45 +01:00
{ lib, stdenv, fetchFromGitHub, SDL2, cmake, makeWrapper }:
stdenv.mkDerivation rec {
pname = "OttoMatic";
version = "4.0.0";
src = fetchFromGitHub {
owner = "jorio";
repo = pname;
rev = version;
2022-06-09 03:29:45 +02:00
sha256 = "sha256-eHy5yED5qrgHqKuqq1dXhmuR2PQBE5aMhSLPoydlpPk=";
2021-12-29 20:24:45 +01:00
fetchSubmodules = true;
};
nativeBuildInputs = [
cmake
makeWrapper
];
buildInputs = [
SDL2
];
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];
2021-12-29 20:24:45 +01:00
installPhase = ''
runHook preInstall
mkdir -p "$out/bin"
mv OttoMatic Data ReadMe.txt "$out/"
makeWrapper $out/OttoMatic $out/bin/OttoMatic --chdir "$out"
2021-12-29 20:24:45 +01:00
runHook postInstall
'';
meta = with lib; {
description = "A port of Otto Matic, a 2001 Macintosh game by Pangea Software, for modern operating systems";
homepage = "https://github.com/jorio/OttoMatic";
2022-12-27 04:37:57 +01:00
license = licenses.cc-by-sa-40;
2021-12-29 20:24:45 +01:00
maintainers = with maintainers; [ lux ];
platforms = platforms.linux;
};
}