nixpkgs/pkgs/by-name/ze/zesarux/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

83 lines
1.4 KiB
Nix
Raw Normal View History

2021-10-11 19:03:51 +00:00
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, SDL2
, aalib
, alsa-lib
, libXext
, libXxf86vm
, libcaca
, libpulseaudio
, libsndfile
, ncurses
, openssl
, which
}:
2023-11-03 12:55:04 +00:00
stdenv.mkDerivation (finalAttrs: {
2021-10-11 19:03:51 +00:00
pname = "zesarux";
2023-11-03 12:55:04 +00:00
version = "unstable-2023-10-31";
2021-10-11 19:03:51 +00:00
src = fetchFromGitHub {
owner = "chernandezba";
2023-11-03 12:55:04 +00:00
repo = "zesarux";
rev = "02e734b088c3b880b2d260a9812404f029dfc92a";
hash = "sha256-1PWFpUNekDKyCUNuV/cNUZ7hWGZBMu0nxswD6pap8pg=";
2021-10-11 19:03:51 +00:00
};
nativeBuildInputs = [
which
];
buildInputs = [
SDL2
aalib
alsa-lib
libXxf86vm
libXext
libcaca
libpulseaudio
libsndfile
ncurses
openssl
];
2023-11-03 12:55:04 +00:00
strictDeps = true;
2023-11-03 12:55:04 +00:00
sourceRoot = "${finalAttrs.src.name}/src";
2021-10-11 19:03:51 +00:00
postPatch = ''
patchShebangs *.sh
2021-10-11 19:03:51 +00:00
'';
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
'';
2023-11-03 12:55:04 +00:00
meta = {
2021-10-11 19:03:51 +00:00
homepage = "https://github.com/chernandezba/zesarux";
2023-11-03 12:55:04 +00:00
description = "ZX Second-Emulator And Released for UniX";
license = with lib.licenses; [ gpl3Plus ];
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.unix;
2021-10-11 19:03:51 +00:00
};
2023-11-03 12:55:04 +00:00
})