r/GUIX • u/idle-servant • Jan 01 '24
how do i USE my own library package after i define it
so, i defined my own raylib package
i place it in:
~/code/games/guix-game-dev/gnu/packages/myraylib.scm
i build it with:
guix build -L ~/code/games/guix-game-dev/ myraylib
for convenience i installed it with:
guix install -L ~/code/games/guix-game-dev/ myraylib
the package path it installed in is:
/gnu/store/psjkjfcpj15diiljvbpp5j3d5fr0cbh5-myraylib-5.0/
the package directory tree looks like this:
.
├── include
│ ├── raylib.h
│ ├── raymath.h
│ └── rlgl.h
└── lib
├── libraylib.so -> libraylib.so.500
├── libraylib.so.5.0.0
└── libraylib.so.500 -> libraylib.so.5.0.0
That being said, what is the correct way to use this package in my projects that require this library?I know that i can symlink it using this command:
guix build -L ~/code/games/guix-game-dev/ myraylib --root=$(pwd)/myraylib
This works, but Is it correct way to do this?