1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, SDL2
, aalib
, alsa-lib
, libXext
, libXxf86vm
, libcaca
, libpulseaudio
, libsndfile
, ncurses
, openssl
, which
}:
stdenv.mkDerivation (finalAttrs: {
pname = "zesarux";
version = "unstable-2023-10-31";
src = fetchFromGitHub {
owner = "chernandezba";
repo = "zesarux";
rev = "02e734b088c3b880b2d260a9812404f029dfc92a";
hash = "sha256-1PWFpUNekDKyCUNuV/cNUZ7hWGZBMu0nxswD6pap8pg=";
};
nativeBuildInputs = [
which
];
buildInputs = [
SDL2
aalib
alsa-lib
libXxf86vm
libXext
libcaca
libpulseaudio
libsndfile
ncurses
openssl
];
strictDeps = true;
sourceRoot = "${finalAttrs.src.name}/src";
postPatch = ''
patchShebangs *.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 = {
homepage = "https://github.com/chernandezba/zesarux";
description = "ZX Second-Emulator And Released for UniX";
license = with lib.licenses; [ gpl3Plus ];
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.unix;
};
})
|