94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
28 lines
586 B
Nix
28 lines
586 B
Nix
{ lib
|
|
, kaem
|
|
, mes
|
|
}:
|
|
let
|
|
pname = "ln-boot";
|
|
version = "unstable-2023-05-22";
|
|
|
|
src = ./ln.c;
|
|
in
|
|
kaem.runCommand "${pname}-${version}" {
|
|
inherit pname version;
|
|
|
|
meta = with lib; {
|
|
description = "Basic tool for creating symbolic links";
|
|
license = licenses.mit;
|
|
maintainers = teams.minimal-bootstrap.members;
|
|
mainProgram = "ln";
|
|
platforms = platforms.unix;
|
|
};
|
|
} ''
|
|
mkdir -p ''${out}/bin
|
|
${mes.compiler}/bin/mes --no-auto-compile -e main ${mes.srcPost.bin}/bin/mescc.scm -- \
|
|
-L ${mes.libs}/lib \
|
|
-lc+tcc \
|
|
-o ''${out}/bin/ln \
|
|
${src}
|
|
''
|