Unverified Commit 19a0c224 authored by Artemis Tosini's avatar Artemis Tosini
Browse files

openbsd.boot-ctags: init



Co-Authored-By: default avatarAudrey Dutcher <audrey@rhelmot.io>
parent 5cd3d0ef
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
{
  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;
}