From fb5aae0af46b6f687b43569e7507f28f4aaa6f97 Mon Sep 17 00:00:00 2001 From: "guillem.cordoba" Date: Mon, 2 Sep 2024 12:46:01 +0200 Subject: [PATCH] Fixed sweettest --- flake.nix | 6 ++---- nix/sweettest.nix | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 7637fbb..4df077e 100644 --- a/flake.nix +++ b/flake.nix @@ -138,16 +138,14 @@ rec { zome-wasm-hash; referenceZomeCargoArtifacts = flake.lib.zomeCargoArtifacts; }; - sweettest = { holochain, dna, workspacePath, crateCargoToml + sweettest = { system, dna, workspacePath, crateCargoToml , buildInputs ? [ ], nativeBuildInputs ? [ ], cargoArtifacts ? null }: let - system = holochain.devShells.holonix.system; pkgs = holochainPkgs { inherit system; }; craneLib = holochainCraneLib { inherit system; }; in pkgs.callPackage ./nix/sweettest.nix { - inherit holochain dna craneLib crateCargoToml cargoArtifacts - workspacePath; + inherit dna craneLib crateCargoToml cargoArtifacts workspacePath; buildInputs = buildInputs ++ holochainDeps { inherit pkgs; lib = pkgs.lib; diff --git a/nix/sweettest.nix b/nix/sweettest.nix index a2d35aa..72c612b 100644 --- a/nix/sweettest.nix +++ b/nix/sweettest.nix @@ -1,4 +1,4 @@ -{ pkgs, dna, lib, cargoArtifacts, buildInputs, nativeBuildInputs, workspacePath +{ dna, lib, cargoArtifacts, buildInputs, nativeBuildInputs, workspacePath , craneLib, crateCargoToml, ... }: let cargoToml = builtins.fromTOML (builtins.readFile crateCargoToml);