mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-15 03:43:11 +00:00
Add target to nix configuration to build C bindings
This commit is contained in:
parent
46c029e644
commit
77cd5e2300
@ -27,6 +27,7 @@
|
||||
build = targets: buildTarget.override { inherit targets; };
|
||||
in rec {
|
||||
logos-storage-nim = build ["all"];
|
||||
libstorage = build ["libstorage"];
|
||||
default = logos-storage-nim;
|
||||
});
|
||||
|
||||
@ -41,6 +42,7 @@
|
||||
default = pkgs.mkShell {
|
||||
inputsFrom = [
|
||||
packages.${system}.logos-storage-nim
|
||||
packages.${system}.libstorage
|
||||
circom-compat.packages.${system}.default
|
||||
];
|
||||
# Not using buildInputs to override fakeGit and fakeCargo.
|
||||
|
||||
@ -84,7 +84,7 @@ in pkgs.gcc13Stdenv.mkDerivation rec {
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp build/storage $out/bin/
|
||||
cp build/*storage* $out/bin/
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user