mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
openbsd.boot-ctags: init
Co-Authored-By: Audrey Dutcher <audrey@rhelmot.io>
This commit is contained in:
parent
5cd3d0ef0f
commit
19a0c22484
25
pkgs/os-specific/bsd/openbsd/pkgs/boot-ctags.nix
Normal file
25
pkgs/os-specific/bsd/openbsd/pkgs/boot-ctags.nix
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user