Put library files in /lib
This commit is contained in:
parent
387beff54d
commit
bb561d2e33
|
@ -22,15 +22,15 @@
|
|||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out"
|
||||
mkdir -p "$out/lib"
|
||||
cp -r src "$out/src"
|
||||
touch src/scanner.c
|
||||
|
||||
gcc -c src/parser.c -o parser.o
|
||||
gcc -c src/scanner.c -o scanner.o
|
||||
ar rcs "$out/parser.a" parser.o scanner.o
|
||||
ar rcs "$out/lib/libtree-sitter-$name.a" parser.o scanner.o
|
||||
|
||||
gcc -shared src/scanner.c src/parser.c -o "$out/lib-tree-sitter-$name.so"
|
||||
gcc -shared src/scanner.c src/parser.c -o "$out/lib/libtree-sitter-$name.so"
|
||||
'';
|
||||
|
||||
# TODO: Get tests working
|
||||
|
|
Loading…
Reference in New Issue
Block a user