openbsd.boot-ctags: init

Co-Authored-By: Audrey Dutcher <audrey@rhelmot.io>
This commit is contained in:
Artemis Tosini 2024-11-05 22:04:30 +00:00
parent 5cd3d0ef0f
commit 19a0c22484
No known key found for this signature in database
GPG Key ID: EE5227935FE3FF18

View File

@ -0,0 +1,25 @@
{
mkDerivation,
lib,
flex,
byacc,
compatHook,
}:
mkDerivation {
path = "usr.bin/ctags";
extraNativeBuildInputs = [
flex
byacc
compatHook
];
buildPhase = ''
for f in *.l; do flex $f; done
for f in *.y; do yacc -H ''${f%.y}.h $f; done
for f in *.c; do $CC -I$TMP/include -DMAKE_BOOTSTRAP -c $f; done
$CC *.o -o ctags
'';
meta.platforms = lib.platforms.linux;
}