Files
nixpkgs/pkgs/by-name/ba/basiliskii/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

54 lines
1.2 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
autoconf,
automake,
pkg-config,
SDL2,
gtk2,
mpfr,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "basiliskii";
version = "unstable-2025-07-16";
# This src is also used to build pkgs/os-specific/linux/sheep-net
# Therefore changes to it may effect the sheep-net package
src = fetchFromGitHub {
owner = "kanjitalk755";
repo = "macemu";
rev = "030599cf8d31cb80afae0e1b086b5706dbdd2eea";
sha256 = "sha256-gxaj+2ymelH6uWmjMLXi64xMNrToo6HZcJ7RW7sVMzo=";
};
sourceRoot = "${finalAttrs.src.name}/BasiliskII/src/Unix";
patches = [ ./remove-redhat-6-workaround-for-scsi-sg.h.patch ];
nativeBuildInputs = [
autoconf
automake
pkg-config
];
buildInputs = [
SDL2
gtk2
mpfr
];
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;
mainProgram = "BasiliskII";
};
})