Merge pull request #141281 from AndersonTorres/new-zesarux

authored by

Sandro and committed by
GitHub
e972bf99 14991132

+91
+89
pkgs/misc/emulators/zesarux/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , SDL2 6 + , aalib 7 + , alsa-lib 8 + , libXext 9 + , libXxf86vm 10 + , libcaca 11 + , libpulseaudio 12 + , libsndfile 13 + , ncurses 14 + , openssl 15 + , which 16 + }: 17 + 18 + stdenv.mkDerivation rec { 19 + pname = "zesarux"; 20 + version = "10.0"; 21 + 22 + src = fetchFromGitHub { 23 + owner = "chernandezba"; 24 + repo = pname; 25 + rev = version; 26 + hash = "sha256-cxV2dAzGnIzJiCRdq8vN/Cl4AQeJqjmiCAahijIJQ9k="; 27 + }; 28 + 29 + nativeBuildInputs = [ 30 + which 31 + ]; 32 + 33 + buildInputs = [ 34 + SDL2 35 + aalib 36 + alsa-lib 37 + libXxf86vm 38 + libXext 39 + libcaca 40 + libpulseaudio 41 + libsndfile 42 + ncurses 43 + openssl 44 + ]; 45 + 46 + patches = [ 47 + # Patch the shell scripts; remove it when the next version arrives 48 + (fetchpatch { 49 + name = "000-fix-shebangs.patch"; 50 + url = "https://github.com/chernandezba/zesarux/commit/4493439b38f565c5be7c36239ecaf0cf80045627.diff"; 51 + sha256 = "sha256-f+21naPcPXdcVvqU8ymlGfl1WkYGOeOBe9B/WFUauTI="; 52 + }) 53 + ]; 54 + 55 + postPatch = '' 56 + cd src 57 + patchShebangs ./configure *.sh 58 + ''; 59 + 60 + configureFlags = [ 61 + "--prefix=${placeholder "out"}" 62 + "--c-compiler ${stdenv.cc.targetPrefix}cc" 63 + "--enable-cpustats" 64 + "--enable-memptr" 65 + "--enable-sdl2" 66 + "--enable-ssl" 67 + "--enable-undoc-scfccf" 68 + "--enable-visualmem" 69 + ]; 70 + 71 + installPhase = '' 72 + runHook preInstall 73 + 74 + ./generate_install_sh.sh 75 + patchShebangs ./install.sh 76 + ./install.sh 77 + 78 + runHook postInstall 79 + ''; 80 + 81 + meta = with lib; { 82 + homepage = "https://github.com/chernandezba/zesarux"; 83 + description = " ZX Second-Emulator And Released for UniX"; 84 + license = licenses.gpl3Plus; 85 + maintainers = with maintainers; [ AndersonTorres ]; 86 + platforms = platforms.unix; 87 + }; 88 + } 89 + # TODO: Darwin support
+2
pkgs/top-level/all-packages.nix
··· 33242 33242 33243 33243 xcfun = callPackage ../development/libraries/science/chemistry/xcfun { }; 33244 33244 33245 + zesarux = callPackage ../misc/emulators/zesarux { }; 33246 + 33245 33247 zthrottle = callPackage ../tools/misc/zthrottle { }; 33246 33248 33247 33249 zktree = callPackage ../applications/misc/zktree {};