2021-06-28 23:13:55 +00:00
|
|
|
{lib, stdenv, fetchurl, pkg-config, gtk2, alsa-lib, SDL}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-18 13:19:15 +00:00
|
|
|
pname = "uae";
|
|
|
|
version = "0.8.29";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-01-07 04:07:37 +00:00
|
|
|
url = "https://web.archive.org/web/20130905032631/http://www.amigaemulator.org/files/sources/develop/uae-${version}.tar.bz2";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "05s3cd1rd5a970s938qf4c2xm3l7f54g5iaqw56v8smk355m4qr4";
|
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [ "--with-sdl" "--with-sdl-sound" "--with-sdl-gfx" "--with-alsa" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [ gtk2 alsa-lib SDL ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
2022-06-16 17:23:12 +00:00
|
|
|
# Workaround build failure on -fno-common toolchains:
|
|
|
|
# ld: bsdsocket.o:(.bss+0x0): multiple definition of
|
|
|
|
# `socketbases'; main.o:(.bss+0x2792c0): first defined here
|
|
|
|
NIX_CFLAGS_COMPILE = "-fcommon";
|
2020-04-24 23:36:52 +00:00
|
|
|
LDFLAGS = [ "-lm" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Ultimate/Unix/Unusable Amiga Emulator";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2022-01-07 04:07:37 +00:00
|
|
|
homepage = "https://web.archive.org/web/20130901222855/http://www.amigaemulator.org/";
|
2021-01-17 00:15:33 +00:00
|
|
|
maintainers = [ lib.maintainers.sander ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|