2023-05-01 02:05:30 +00:00
|
|
|
{ lib
|
2023-05-11 15:05:30 +00:00
|
|
|
, kaem
|
2023-05-01 02:05:30 +00:00
|
|
|
, mes
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
pname = "ln-boot";
|
2023-05-22 13:01:48 +00:00
|
|
|
version = "unstable-2023-05-22";
|
2023-05-01 02:05:30 +00:00
|
|
|
|
|
|
|
src = ./ln.c;
|
|
|
|
in
|
2023-05-11 15:05:30 +00:00
|
|
|
kaem.runCommand "${pname}-${version}" {
|
2023-05-01 02:05:30 +00:00
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Basic tool for creating symbolic links";
|
|
|
|
license = licenses.mit;
|
2023-05-17 00:25:02 +00:00
|
|
|
maintainers = teams.minimal-bootstrap.members;
|
2023-05-01 02:05:30 +00:00
|
|
|
mainProgram = "ln";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
} ''
|
|
|
|
mkdir -p ''${out}/bin
|
2023-05-14 23:27:15 +00:00
|
|
|
${mes.compiler}/bin/mes --no-auto-compile -e main ${mes.srcPost.bin}/bin/mescc.scm -- \
|
|
|
|
-L ${mes.libs}/lib \
|
2023-05-01 02:05:30 +00:00
|
|
|
-lc+tcc \
|
|
|
|
-o ''${out}/bin/ln \
|
|
|
|
${src}
|
|
|
|
''
|