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
53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
tclPackages,
|
|
fetchurl,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "ma";
|
|
version = "13";
|
|
|
|
src = fetchurl {
|
|
url = "https://web.archive.org/web/20250829110226/http://call-with-current-continuation.org/ma/ma.tar.gz";
|
|
hash = "sha256-QNt4ctcu4/xJY2eud+kp5paPUnLsRhK7D2nJ0LBIvIo=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace ./build --replace-fail cc ${lib.getExe stdenv.cc}
|
|
'';
|
|
|
|
buildInputs = [
|
|
tclPackages.tk
|
|
];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
./build
|
|
for f in B ma ma-eval; do
|
|
substituteInPlace $f --replace-fail \
|
|
'set exec_prefix ""' "set exec_prefix \"$out/bin/\""
|
|
done
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dt $out/bin \
|
|
B awd ma ma-eval plumb pty win
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Minimalistic variant of the Acme editor";
|
|
homepage = "http://call-with-current-continuation.org/ma/ma.html";
|
|
mainProgram = "ma";
|
|
maintainers = [ lib.maintainers.sternenseemann ];
|
|
# Per the README:
|
|
# > All of MA's source code is hereby placed in the public domain
|
|
license = lib.licenses.publicDomain;
|
|
inherit (tclPackages.tk.meta) platforms;
|
|
};
|
|
}
|