nixpkgs/pkgs/by-name/ua/uae/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

33 lines
1.1 KiB
Nix

{lib, stdenv, fetchurl, pkg-config, gtk2, alsa-lib, SDL}:
stdenv.mkDerivation rec {
pname = "uae";
version = "0.8.29";
src = fetchurl {
url = "https://web.archive.org/web/20130905032631/http://www.amigaemulator.org/files/sources/develop/uae-${version}.tar.bz2";
sha256 = "05s3cd1rd5a970s938qf4c2xm3l7f54g5iaqw56v8smk355m4qr4";
};
configureFlags = [ "--with-sdl" "--with-sdl-sound" "--with-sdl-gfx" "--with-alsa" ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk2 alsa-lib SDL ];
hardeningDisable = [ "format" ];
# Workaround build failure on -fno-common toolchains:
# ld: bsdsocket.o:(.bss+0x0): multiple definition of
# `socketbases'; main.o:(.bss+0x2792c0): first defined here
env.NIX_CFLAGS_COMPILE = "-fcommon";
LDFLAGS = [ "-lm" ];
meta = {
description = "Ultimate/Unix/Unusable Amiga Emulator";
license = lib.licenses.gpl2Plus;
homepage = "https://web.archive.org/web/20130901222855/http://www.amigaemulator.org/";
maintainers = [ lib.maintainers.sander ];
platforms = lib.platforms.linux;
mainProgram = "uae";
};
}