diff --git a/pkgs/os-specific/bsd/openbsd/pkgs/boot-ctags.nix b/pkgs/os-specific/bsd/openbsd/pkgs/boot-ctags.nix new file mode 100644 index 000000000000..e4bf4607da47 --- /dev/null +++ b/pkgs/os-specific/bsd/openbsd/pkgs/boot-ctags.nix @@ -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; +}