initial commit
This commit is contained in:
commit
c6b956ffa9
33 changed files with 3077 additions and 0 deletions
21
support/lib-lz4.nix
Normal file
21
support/lib-lz4.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ mkMuslLib, pkgs, zigCC, zigAR, zigRANLIB, ... }:
|
||||
mkMuslLib {
|
||||
pname = "lz4-musl-static";
|
||||
src = pkgs.lz4.src;
|
||||
nativeBuildInputs = [ pkgs.cmake ];
|
||||
configurePhase = ''
|
||||
cmake -S build/cmake -B builddir \
|
||||
-DCMAKE_C_COMPILER="${zigCC}" \
|
||||
-DCMAKE_CXX_COMPILER="${zigCC}" \
|
||||
-DCMAKE_AR="${zigAR}" \
|
||||
-DCMAKE_RANLIB="${zigRANLIB}" \
|
||||
-DLZ4_BUILD_CLI=OFF \
|
||||
-DLZ4_BUILD_LEGACY_LZ4C=OFF \
|
||||
-DBUILD_SHARED_LIBS=OFF \
|
||||
-DBUILD_STATIC_LIBS=ON \
|
||||
-DCMAKE_INSTALL_PREFIX=$out \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib
|
||||
'';
|
||||
buildPhase = "cmake --build builddir -j$NIX_BUILD_CORES";
|
||||
installPhase = "cmake --install builddir";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue