2021-06-10 02:57:09 +00:00
|
|
|
{lib, stdenv, fetchurl, pkg-config, gtk2, alsa-lib, SDL}:
|
2011-06-26 19:49:51 +00:00
|
|
|
|
2015-05-19 00:15:40 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-08-12 21:00:21 +00:00
|
|
|
pname = "uae";
|
|
|
|
version = "0.8.29";
|
2016-02-22 00:22:28 +00:00
|
|
|
|
2011-06-26 19:49:51 +00:00
|
|
|
src = fetchurl {
|
2022-01-06 17:08:29 +00:00
|
|
|
url = "https://web.archive.org/web/20130905032631/http://www.amigaemulator.org/files/sources/develop/uae-${version}.tar.bz2";
|
2011-06-26 19:49:51 +00:00
|
|
|
sha256 = "05s3cd1rd5a970s938qf4c2xm3l7f54g5iaqw56v8smk355m4qr4";
|
|
|
|
};
|
2016-02-22 00:22:28 +00:00
|
|
|
|
2011-06-26 19:49:51 +00:00
|
|
|
configureFlags = [ "--with-sdl" "--with-sdl-sound" "--with-sdl-gfx" "--with-alsa" ];
|
2016-02-22 00:22:28 +00:00
|
|
|
|
2021-01-17 02:30:45 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-06-10 02:57:09 +00:00
|
|
|
buildInputs = [ gtk2 alsa-lib SDL ];
|
2016-02-22 00:22:28 +00:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2022-06-05 19:52:21 +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
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
2019-06-09 10:21:15 +00:00
|
|
|
LDFLAGS = [ "-lm" ];
|
2016-02-22 00:22:28 +00:00
|
|
|
|
2011-07-22 19:25:31 +00:00
|
|
|
meta = {
|
2014-12-30 02:31:03 +00:00
|
|
|
description = "Ultimate/Unix/Unusable Amiga Emulator";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2022-01-06 17:08:29 +00:00
|
|
|
homepage = "https://web.archive.org/web/20130901222855/http://www.amigaemulator.org/";
|
2021-01-15 13:21:58 +00:00
|
|
|
maintainers = [ lib.maintainers.sander ];
|
|
|
|
platforms = lib.platforms.linux;
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "uae";
|
2011-07-22 19:25:31 +00:00
|
|
|
};
|
2011-06-26 19:49:51 +00:00
|
|
|
}
|