1 { lib, stdenv, fetchFromGitHub, zlib }:
3 libs-src = fetchFromGitHub {
7 rev = "c5cb3ed512c677db6f33e2d3539dfbb6e547030b";
8 sha256 = "sha256-GiplhZf640uScVdKL6E/fegOgtC9SE1xgBqcX86XADk=";
11 stdenv.mkDerivation rec {
15 src = fetchFromGitHub {
19 sha256 = "sha256-Zbno8kmzss1H2FjwzHB4U7UXxa6oDfsPV80MVVFfM68=";
21 # remove folder containing files with weird names (causes the hash to turn out differently under macOS vs. Linux)
26 buildInputs = [ zlib ];
29 ln -sf ${libs-src} Libraries
33 "CC=${stdenv.cc.targetPrefix}cc"
34 "CXX=${stdenv.cc.targetPrefix}c++"
35 "LINK=${stdenv.cc.targetPrefix}c++"
36 "STRIP=${stdenv.cc.targetPrefix}strip"
40 install -Dm755 -t $out/bin zasm
44 description = "Z80 / 8080 / Z180 assembler (for unix-style OS)";
46 homepage = "https://k1.spdns.de/Develop/Projects/zasm/Distributions/";
47 license = licenses.bsd2;
48 maintainers = [ maintainers.turbomack ];
49 platforms = platforms.unix;
50 badPlatforms = platforms.aarch64;