atari800: cleanup

This commit is contained in:
Anderson Torres 2023-12-29 14:55:48 -03:00
parent 006a2b5e92
commit 704823fe3c

View File

@ -1,43 +1,60 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook { lib
, zlib, SDL, readline, libGLU, libGL, libX11 }: , stdenv
, SDL
, autoreconfHook
, fetchFromGitHub
, libGL
, libGLU
, libX11
, readline
, zlib
}:
with lib; stdenv.mkDerivation (finalAttrs: {
stdenv.mkDerivation rec {
pname = "atari800"; pname = "atari800";
version = "5.0.0"; version = "5.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "atari800"; owner = "atari800";
repo = "atari800"; repo = "atari800";
rev = "ATARI800_${replaceStrings ["."] ["_"] version}"; hash = "sha256-+eJXhqPyU0GhmzF7DbteTXzEnn5klCor9Io/UgXQfQg=";
sha256 = "sha256-+eJXhqPyU0GhmzF7DbteTXzEnn5klCor9Io/UgXQfQg="; rev = "ATARI800_${lib.replaceStrings ["."] ["_"] finalAttrs.version}";
}; };
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [
autoreconfHook
];
buildInputs = [ zlib SDL readline libGLU libGL libX11 ]; buildInputs = [
SDL
libGL
libGLU
libX11
readline
zlib
];
configureFlags = [ configureFlags = [
"--target=default" "--target=default"
"--with-video=sdl" (lib.enableFeature true "riodevice")
"--with-sound=sdl" (lib.withFeature true "opengl")
"--with-readline" (lib.withFeature true "readline")
"--with-opengl" (lib.withFeature true "x")
"--with-x" (lib.withFeatureAs true "sound" "sdl")
"--enable-riodevice" (lib.withFeatureAs true "video" "sdl")
]; ];
meta = { meta = {
homepage = "https://atari800.github.io/"; homepage = "https://atari800.github.io/";
description = "An Atari 8-bit emulator"; description = "An Atari 8-bit emulator";
longDescription = '' longDescription = ''
Atari800 is the emulator of Atari 8-bit computer systems and Atari800 is the emulator of Atari 8-bit computer systems and 5200 game
5200 game console for Unix, Linux, Amiga, MS-DOS, Atari console for Unix, Linux, Amiga, MS-DOS, Atari TT/Falcon, MS-Windows, MS
TT/Falcon, MS-Windows, MS WinCE, Sega Dreamcast, Android and WinCE, Sega Dreamcast, Android and other systems supported by the SDL
other systems supported by the SDL library. library.
''; '';
maintainers = [ maintainers.AndersonTorres ]; license = with lib.licenses; [ gpl2Plus ];
license = licenses.gpl2Plus; maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} })