Add target to nix configuration to build C bindings

This commit is contained in:
Arnaud 2026-01-05 12:50:50 +04:00
parent 46c029e644
commit 77cd5e2300
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F
2 changed files with 3 additions and 1 deletions

View File

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

View File

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