Skip to content

Commit

Permalink
Expose buildInputs and nativeBuildInputs on sweettest
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed May 31, 2024
1 parent 1fe2b5c commit 3362997
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -156,22 +156,24 @@
inherit deterministicCraneLib craneLib crateCargoToml
workspacePath zomeCargoDeps nonWasmCrates;
};
sweettest = { holochain, dna, workspacePath, crateCargoToml }:
sweettest = { holochain, dna, workspacePath, crateCargoToml
, buildInputs ? [ ], nativeBuildInputs ? [ ] }:
let
system = holochain.devShells.holonix.system;
pkgs = holochainPkgs { inherit system; };
craneLib = holochainCraneLib { inherit system; };
in pkgs.callPackage ./nix/sweettest.nix {
inherit holochain dna craneLib workspacePath crateCargoToml
holochainCargoDeps;
nativeBuildInputs = holochainAppDeps.nativeBuildInputs {
inherit pkgs;
lib = pkgs.lib;
};
buildInputs = holochainAppDeps.buildInputs {
buildInputs = buildInputs ++ holochainAppDeps.buildInputs {
inherit pkgs;
lib = pkgs.lib;
};
nativeBuildInputs = nativeBuildInputs
++ holochainAppDeps.nativeBuildInputs {
inherit pkgs;
lib = pkgs.lib;
};
};
dna = { holochain, dnaManifest, zomes }:
let
Expand Down

0 comments on commit 3362997

Please sign in to comment.