Put library files in /lib

main
xenia 2023-11-11 23:36:33 +01:00
parent 387beff54d
commit bb561d2e33
1 changed files with 3 additions and 3 deletions

View File

@ -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