Merge pull request #141281 from AndersonTorres/new-zesarux

This commit is contained in:
Sandro 2021-10-12 21:14:53 +02:00 committed by GitHub
commit e972bf9958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 91 additions and 0 deletions

View File

@ -0,0 +1,89 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, SDL2
, aalib
, alsa-lib
, libXext
, libXxf86vm
, libcaca
, libpulseaudio
, libsndfile
, ncurses
, openssl
, which
}:
stdenv.mkDerivation rec {
pname = "zesarux";
version = "10.0";
src = fetchFromGitHub {
owner = "chernandezba";
repo = pname;
rev = version;
hash = "sha256-cxV2dAzGnIzJiCRdq8vN/Cl4AQeJqjmiCAahijIJQ9k=";
};
nativeBuildInputs = [
which
];
buildInputs = [
SDL2
aalib
alsa-lib
libXxf86vm
libXext
libcaca
libpulseaudio
libsndfile
ncurses
openssl
];
patches = [
# Patch the shell scripts; remove it when the next version arrives
(fetchpatch {
name = "000-fix-shebangs.patch";
url = "https://github.com/chernandezba/zesarux/commit/4493439b38f565c5be7c36239ecaf0cf80045627.diff";
sha256 = "sha256-f+21naPcPXdcVvqU8ymlGfl1WkYGOeOBe9B/WFUauTI=";
})
];
postPatch = ''
cd src
patchShebangs ./configure *.sh
'';
configureFlags = [
"--prefix=${placeholder "out"}"
"--c-compiler ${stdenv.cc.targetPrefix}cc"
"--enable-cpustats"
"--enable-memptr"
"--enable-sdl2"
"--enable-ssl"
"--enable-undoc-scfccf"
"--enable-visualmem"
];
installPhase = ''
runHook preInstall
./generate_install_sh.sh
patchShebangs ./install.sh
./install.sh
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/chernandezba/zesarux";
description = " ZX Second-Emulator And Released for UniX";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.unix;
};
}
# TODO: Darwin support

View File

@ -33242,6 +33242,8 @@ with pkgs;
xcfun = callPackage ../development/libraries/science/chemistry/xcfun { };
zesarux = callPackage ../misc/emulators/zesarux { };
zthrottle = callPackage ../tools/misc/zthrottle { };
zktree = callPackage ../applications/misc/zktree {};