Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Sep 23, 2024
1 parent 9d0321e commit 1679e13
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion crates/compare_dnas_integrity/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
};
cargoArtifacts = craneLib.buildDepsOnly (commonArgs // {
pname = "t-nesh-workspace";
version = "0.3.x";
version = "0.4.x";
});
in craneLib.buildPackage (commonArgs // {
pname = crate;
Expand Down
4 changes: 2 additions & 2 deletions crates/dna_hash/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
buildInputs = self.lib.holochainDeps { inherit pkgs lib; };
};
cargoArtifacts = craneLib.buildDepsOnly (commonArgs // {
pname = "workspace";
version = "workspace";
pname = "t-nesh-workspace";
version = "0.4.x";
});
in craneLib.buildPackage (commonArgs // {
pname = crate;
Expand Down
2 changes: 1 addition & 1 deletion crates/scaffold_remote_zome/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
};
cargoArtifacts = craneLib.buildDepsOnly (commonArgs // {
pname = "t-nesh-workspace";
version = "0.3.x";
version = "0.4.x";
});
in craneLib.buildPackage (commonArgs // {
pname = crate;
Expand Down
2 changes: 1 addition & 1 deletion crates/sync_npm_git_dependencies_with_nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
};
cargoArtifacts = craneLib.buildDepsOnly (commonArgs // {
pname = "t-nesh-workspace";
version = "0.3.x";
version = "0.4.x";
});
in craneLib.buildPackage (commonArgs // {
pname = crate;
Expand Down
2 changes: 1 addition & 1 deletion crates/zome_wasm_hash/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
};
cargoArtifacts = craneLib.buildDepsOnly (commonArgs // {
pname = "t-nesh-workspace";
version = "0.3.x";
version = "0.4.x";
});
in craneLib.buildPackage (commonArgs // {
pname = crate;
Expand Down
6 changes: 2 additions & 4 deletions nix/dna.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,23 @@ let
${holochain}/bin/hc dna pack workdir
mv workdir/${manifest.name}.dna $out
${dna-hash}/bin/dna-hash $out > $hash
'';

guardedRelease = if matchingIntegrityDna != null then
runCommandLocal "check-match-dna-${manifest.name}-integrity" {
srcs = [ release matchingIntegrityDna ];
buildInputs = [ compare-dnas-integrity ];
outputs = [ "out" "hash" ];
outputs = [ "out" ];
} ''
${compare-dnas-integrity}/bin/compare-dnas-integrity ${matchingIntegrityDna} ${release}
cp ${release} $out
cat ${release.hash} > $hash
''
else
release;

in runCommandLocal manifest.name {
meta = { inherit debug; };
outputs = [ "out" ];
outputs = [ "out" "hash" ];
} ''
cp ${guardedRelease} $out
${dna-hash}/bin/dna-hash $out > $hash
Expand Down
2 changes: 1 addition & 1 deletion nix/fixtures/app-repo/flake.lock

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

0 comments on commit 1679e13

Please sign in to comment.