1 { stdenv, lib, fetchFromGitHub, autoconf, automake, pkg-config, SDL2, gtk2, mpfr }:
2 stdenv.mkDerivation (finalAttrs: {
4 version = "unstable-2022-09-30";
6 src = fetchFromGitHub {
7 owner = "kanjitalk755";
9 rev = "2fa17a0783cf36ae60b77b5ed930cda4dc1824af";
10 sha256 = "+jkns6H2YjlewbUzgoteGSQYWJL+OWVu178aM+BtABM=";
12 sourceRoot = "${finalAttrs.src.name}/BasiliskII/src/Unix";
13 patches = [ ./remove-redhat-6-workaround-for-scsi-sg.h.patch ];
14 nativeBuildInputs = [ autoconf automake pkg-config ];
15 buildInputs = [ SDL2 gtk2 mpfr ];
17 NO_CONFIGURE=1 ./autogen.sh
19 configureFlags = [ "--enable-sdl-video" "--enable-sdl-audio" "--with-bincue" ];
22 description = "68k Macintosh emulator";
23 homepage = "https://basilisk.cebix.net/";
24 license = licenses.gpl2;
25 maintainers = with maintainers; [ quag ];
26 platforms = platforms.linux;