Skip to content

Instantly share code, notes, and snippets.

@dustinlacewell
Created March 17, 2021 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dustinlacewell/22a2cf11fd0cacd84ca87c6b4f84290c to your computer and use it in GitHub Desktop.
Save dustinlacewell/22a2cf11fd0cacd84ca87c6b4f84290c to your computer and use it in GitHub Desktop.
{ stdenv, fetchgit, autoconf, automake, file, gcc49, gtk2, libX11, perl,
pkgconfig, SDL }:
stdenv.mkDerivation {
name = "SheepShaver-2.3-git";
src = fetchgit {
url = https://github.com/cebix/macemu.git;
rev = "5cbf07e9f537ddd224d7b7ed9922938701ea3daa";
sha256 = "1b1rbchv95f0z47dfmm2w0cx52hh68alq1hp4c4cgwanjjakzg5r";
};
# Have to use gcc in order to avoid a known SheepShaver+SDL
# segfault.
buildInputs =
[ autoconf automake file gcc49 gtk2 libX11 perl pkgconfig SDL ];
preConfigure =
''
substituteInPlace SheepShaver/src/Unix/configure.ac \
--replace "/usr/bin/file" "${file}/bin/file"
cd SheepShaver/src/Unix \
&& aclocal -I `aclocal --print-ac-dir` -I m4 \
&& autoheader \
&& autoconf
'';
configureFlags =
[ "--enable-sdl-audio"
"--enable-sdl-video" ];
meta = with stdenv.lib; {
homepage = http://sheepshaver.cebix.net/;
description = "Open source PowerMac (classic MacOS) emulator";
longDescription =
''
A MacOS run-time environment and PowerPC emulator for BeOS and
Linux that allows you to run classic MacOS applications inside
the BeOS/Linux multitasking environment. You need a copy of
MacOS and a PowerMac ROM image to use SheepShaver.
'';
license = licenses.gpl2;
maintainers = with maintainers; [ malyn ];
platforms = platforms.linux;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment