Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
59 lines
1.4 KiB
Nix
59 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
sdl3,
|
|
libGL,
|
|
cmake,
|
|
makeWrapper,
|
|
unstableGitUpdater,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "OttoMatic";
|
|
version = "4.0.1-unstable-2025-04-27";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jorio";
|
|
repo = "OttoMatic";
|
|
rev = "69f0111d1768abe56498bf8121f0f9cbc85aedd3";
|
|
hash = "sha256-7RpEVL3tNhEhkZYVjgsI6S+CQfyiz/ukroldrtohA4k=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
makeWrapper
|
|
];
|
|
|
|
buildInputs = [
|
|
sdl3
|
|
libGL
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p "$out/bin"
|
|
mkdir -p "$out/share/OttoMatic"
|
|
mv Data ReadMe.txt "$out/share/OttoMatic/"
|
|
install -Dm755 {.,$out/bin}/OttoMatic
|
|
wrapProgram $out/bin/OttoMatic --chdir "$out/share/OttoMatic"
|
|
install -Dm644 $src/packaging/io.jor.ottomatic.desktop $out/share/applications/io.jor.ottomatic.desktop
|
|
install -Dm644 $src/packaging/io.jor.ottomatic.png $out/share/pixmaps/io.jor.ottomatic.png
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
meta = {
|
|
description = "Port of Otto Matic, a 2001 Macintosh game by Pangea Software, for modern operating systems";
|
|
homepage = "https://github.com/jorio/OttoMatic";
|
|
license = lib.licenses.cc-by-sa-40;
|
|
maintainers = with lib.maintainers; [ lux ];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "OttoMatic";
|
|
};
|
|
}
|