1 { lib, stdenv, fetchFromGitHub, SDL2, cmake, makeWrapper }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-0mqOAdAmJGxKa6yXktrbmdXkoQIliimq37iy9bCBZYg=";
12 fetchSubmodules = true;
28 mkdir -p "$out/share/OttoMatic"
29 mv Data ReadMe.txt "$out/share/OttoMatic/"
30 install -Dm755 {.,$out/bin}/OttoMatic
31 wrapProgram $out/bin/OttoMatic --chdir "$out/share/OttoMatic"
32 install -Dm644 $src/packaging/io.jor.ottomatic.desktop $out/share/applications/io.jor.ottomatic.desktop
33 install -Dm644 $src/packaging/io.jor.ottomatic.png $out/share/pixmaps/io.jor.ottomatic.png
38 description = "A port of Otto Matic, a 2001 Macintosh game by Pangea Software, for modern operating systems";
39 homepage = "https://github.com/jorio/OttoMatic";
40 license = licenses.cc-by-sa-40;
41 maintainers = with maintainers; [ lux ];
42 platforms = platforms.linux;