Skip to content

Commit

Permalink
Changed back to workspacePath
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed May 31, 2024
1 parent 5b5ed1a commit d67f813
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@

in { inherit cargoVendorDir cargoArtifacts; };

rustZome = { crateCargoToml, holochain, self, nonWasmCrates ? [ ] }:
rustZome =
{ crateCargoToml, holochain, workspacePath, nonWasmCrates ? [ ] }:
let
deterministicCraneLib = let
pkgs = import inputs.nixpkgs {
Expand All @@ -153,17 +154,17 @@

in pkgs.callPackage ./nix/zome.nix {
inherit deterministicCraneLib craneLib crateCargoToml
zomeCargoDeps nonWasmCrates;
workspacePath = builtins.toString self;
zomeCargoDeps nonWasmCrates workspacePath;
};
sweettest = { holochain, dna, self, crateCargoToml, buildInputs ? [ ]
, nativeBuildInputs ? [ ] }:
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 crateCargoToml holochainCargoDeps;
inherit holochain dna craneLib crateCargoToml holochainCargoDeps
workspacePath;
buildInputs = buildInputs ++ holochainAppDeps.buildInputs {
inherit pkgs;
lib = pkgs.lib;
Expand All @@ -173,7 +174,6 @@
inherit pkgs;
lib = pkgs.lib;
};
workspacePath = builtins.toString self;
};
dna = { holochain, dnaManifest, zomes }:
let
Expand Down
2 changes: 1 addition & 1 deletion nix/fixtures/module-repo/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions nix/fixtures/module-repo/zome/zome.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{ inputs, self, ... }:
{ inputs, ... }:

{
perSystem = { inputs', self', ... }: {
packages.my_zome = inputs.hc-infra.outputs.lib.rustZome {
inherit self;
workspacePath = inputs.self.outPath;
holochain = inputs'.holochain;
crateCargoToml = ./Cargo.toml;
};
checks.my_zome = inputs.hc-infra.outputs.lib.sweettest {
inherit self;
workspacePath = inputs.self.outPath;
holochain = inputs'.holochain;
dna = inputs.hc-infra.outputs.lib.dna {
dnaManifest = builtins.toFile "dna.yaml" ''
Expand Down

0 comments on commit d67f813

Please sign in to comment.