Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions pkgs/by-name/ma/ma/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
lib,
stdenv,
tclPackages,
fetchurl,
}:

stdenv.mkDerivation {
pname = "ma";
version = "11";

src = fetchurl {
url = "http://call-with-current-continuation.org/ma/ma.tar.gz";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is probably not a stable url. The hash will change when it updates, breaking builds/reproducibility

hash = "sha256-1UVxXbN2jSNm13BjyoN3jbKtkO3DUEEHaDOC2Ibbxf4=";
};

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 = with lib.maintainers; [ ehmry ];
license = lib.licenses.free;
inherit (tclPackages.tk.meta) platforms;
};
}