diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2021-10-11 16:03:51 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2021-10-11 18:49:28 -0300 |
commit | 36f25f27ebef78793d0ff70061ddf63181afe652 (patch) | |
tree | 6291f6eb6cbf11172fe83c37536e8f36ecdbb117 /pkgs/misc | |
parent | 7882b7fa236d3f96836966a6bd2a4c3c3333f1a5 (diff) | |
download | nixpkgs-36f25f27ebef78793d0ff70061ddf63181afe652.tar nixpkgs-36f25f27ebef78793d0ff70061ddf63181afe652.tar.gz nixpkgs-36f25f27ebef78793d0ff70061ddf63181afe652.tar.bz2 nixpkgs-36f25f27ebef78793d0ff70061ddf63181afe652.tar.lz nixpkgs-36f25f27ebef78793d0ff70061ddf63181afe652.tar.xz nixpkgs-36f25f27ebef78793d0ff70061ddf63181afe652.tar.zst nixpkgs-36f25f27ebef78793d0ff70061ddf63181afe652.zip |
zesarux: init at 10.0
Diffstat (limited to 'pkgs/misc')
-rw-r--r-- | pkgs/misc/emulators/zesarux/default.nix | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/pkgs/misc/emulators/zesarux/default.nix b/pkgs/misc/emulators/zesarux/default.nix new file mode 100644 index 00000000000..4df6cfafbc0 --- /dev/null +++ b/pkgs/misc/emulators/zesarux/default.nix @@ -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 |