Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "zasm";
|
|
version = "4.4.17";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "megatokio";
|
|
repo = "zasm";
|
|
tag = finalAttrs.version;
|
|
fetchSubmodules = true;
|
|
hash = "sha256-nc8hlGfix9eVTP5ZimmLKv22cdfsKRfrG70brpUh6CA=";
|
|
postFetch = ''
|
|
# remove folder containing files with weird names (causes the hash to turn out differently under macOS vs. Linux)
|
|
rm -rv $out/Test
|
|
'';
|
|
};
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
makeFlags = [
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
"CXX=${stdenv.cc.targetPrefix}c++"
|
|
"LINK=${stdenv.cc.targetPrefix}c++"
|
|
"STRIP=${stdenv.cc.targetPrefix}strip"
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 -t $out/bin zasm
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Z80 / 8080 / Z180 assembler (for unix-style OS)";
|
|
mainProgram = "zasm";
|
|
homepage = "https://k1.spdns.de/Develop/Projects/zasm/Distributions/";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = [ lib.maintainers.turbomack ];
|
|
platforms = lib.platforms.unix;
|
|
badPlatforms = lib.platforms.aarch64;
|
|
};
|
|
})
|