parent
263292cb5e
commit
b56b2401b8
@ -0,0 +1,28 @@ |
||||
{ stdenv, lib, fetchFromGitHub, autoconf, automake, pkg-config, SDL2, gtk2 }: |
||||
stdenv.mkDerivation { |
||||
pname = "basiliskii"; |
||||
version = "unstable-2022-04-05"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "kanjitalk755"; |
||||
repo = "macemu"; |
||||
rev = "d4baa318e49a29d7ea5fc71a637191d6c470546f"; |
||||
sha256 = "jBKTC2fIPJ6mSkMABNxcd2ujXJ+duCXw291iz5ZmiVg="; |
||||
}; |
||||
sourceRoot = "source/BasiliskII/src/Unix"; |
||||
patches = [ ./remove-redhat-6-workaround-for-scsi-sg.h.patch ]; |
||||
nativeBuildInputs = [ autoconf automake pkg-config ]; |
||||
buildInputs = [ SDL2 gtk2 ]; |
||||
preConfigure = '' |
||||
NO_CONFIGURE=1 ./autogen.sh |
||||
''; |
||||
configureFlags = [ "--enable-sdl-video" "--enable-sdl-audio" "--with-bincue" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "68k Macintosh emulator"; |
||||
homepage = "https://basilisk.cebix.net/"; |
||||
license = licenses.gpl2; |
||||
maintainers = with maintainers; [ quag ]; |
||||
platforms = platforms.linux; |
||||
}; |
||||
} |
@ -0,0 +1,10 @@ |
||||
diff --git a/Linux/scsi_linux.cpp b/Linux/scsi_linux.cpp
|
||||
--- a/Linux/scsi_linux.cpp
|
||||
+++ b/Linux/scsi_linux.cpp
|
||||
@@ -22,5 +22,5 @@
|
||||
#include <sys/ioctl.h>
|
||||
#include <linux/param.h>
|
||||
-#include <linux/../scsi/sg.h> // workaround for broken RedHat 6.0 /usr/include/scsi
|
||||
+#include <scsi/sg.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
Loading…
Reference in new issue