2021-01-22 11:25:31 +00:00
|
|
|
{ fetchFromGitHub, zlib, lib, stdenv }:
|
2020-01-25 18:46:04 +00:00
|
|
|
let
|
|
|
|
libs-src = fetchFromGitHub {
|
|
|
|
owner = "megatokio";
|
|
|
|
repo = "Libraries";
|
|
|
|
rev = "97ea480051b106e83a086dd42583dfd3e9d458a1";
|
|
|
|
sha256 = "1kqmjb9660mnb0r18s1grrrisx6b73ijsinlyr97vz6992jd5dzh";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "zasm";
|
|
|
|
version = "4.2.6";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "megatokio";
|
|
|
|
repo = "zasm";
|
|
|
|
rev = "f1424add17a5514895a598d6b5e3982579961519";
|
|
|
|
sha256 = "1kqnqdqp2bfsazs6vfx2aiqanxxagn8plx8g6rc11vmr8yqnnpks";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
ln -sf ${libs-src} Libraries
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
cd Linux
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mv zasm $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-22 11:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-01-25 18:46:04 +00:00
|
|
|
description = "Z80 / 8080 assembler (for unix-style OS)";
|
|
|
|
homepage = "https://k1.spdns.de/Develop/Projects/zasm/Distributions/";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = [ maintainers.turbomack ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
badPlatforms = platforms.aarch64;
|
|
|
|
};
|
|
|
|
}
|