From 24bf66caa19aabe544a619d89af75aba9a0add06 Mon Sep 17 00:00:00 2001 From: "guillem.cordoba" Date: Tue, 17 Sep 2024 18:01:28 +0200 Subject: [PATCH 1/9] Fixed pnpm --- flake.lock | 21 +++++++++++++++++---- flake.nix | 3 ++- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/flake.lock b/flake.lock index c503c00..9f0a6da 100644 --- a/flake.lock +++ b/flake.lock @@ -155,6 +155,22 @@ "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" } }, + "nixpkgs_2": { + "locked": { + "lastModified": 1726447378, + "narHash": "sha256-2yV8nmYE1p9lfmLHhOCbYwQC/W8WYfGQABoGzJOb1JQ=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "086b448a5d54fd117f4dc2dee55c9f0ff461bdc1", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-24.05", + "repo": "nixpkgs", + "type": "github" + } + }, "root": { "inputs": { "crane": [ @@ -162,10 +178,7 @@ "crane" ], "holonix": "holonix", - "nixpkgs": [ - "holonix", - "nixpkgs" - ], + "nixpkgs": "nixpkgs_2", "rust-overlay": [ "holonix", "rust-overlay" diff --git a/flake.nix b/flake.nix index dc2c38c..1f822cb 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,7 @@ rec { inputs = { - nixpkgs.follows = "holonix/nixpkgs"; + # nixpkgs.follows = "holonix/nixpkgs"; + nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; holonix.url = "github:holochain/holonix/main-0.3"; rust-overlay.follows = "holonix/rust-overlay"; From 3df9f6b328c6d97d3600754d5e3414bb50d4c9b7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 18 Sep 2024 07:10:53 +0000 Subject: [PATCH 2/9] [create-pull-request] automated change (#82) Co-authored-by: guillemcordoba --- nix/fixtures/module-repo/Cargo.lock | 12 ++++++------ nix/reference-happ/Cargo.lock | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/nix/fixtures/module-repo/Cargo.lock b/nix/fixtures/module-repo/Cargo.lock index 19ff011..91785ca 100644 --- a/nix/fixtures/module-repo/Cargo.lock +++ b/nix/fixtures/module-repo/Cargo.lock @@ -697,9 +697,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.7.1" +version = "1.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8318a53db07bb3f8dca91a600466bdb3f2eaadeedfdbcf02e1accbad9271ba50" +checksum = "428d9aa8fbc0670b7b8d6030a7fadd0f86151cae55e4dbbece15f3780a3dfaf3" dependencies = [ "serde", ] @@ -774,9 +774,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.1.19" +version = "1.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d74707dde2ba56f86ae90effb3b43ddd369504387e718014de010cec7959800" +checksum = "45bcde016d64c21da4be18b655631e5ab6d3107607e71a73a9f53eb48aae23fb" dependencies = [ "jobserver", "libc", @@ -7448,9 +7448,9 @@ checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" [[package]] name = "unicode-normalization" -version = "0.1.23" +version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5" +checksum = "5033c97c4262335cded6d6fc3e5c18ab755e1a3dc96376350f3d8e9f009ad956" dependencies = [ "tinyvec", ] diff --git a/nix/reference-happ/Cargo.lock b/nix/reference-happ/Cargo.lock index 19b863b..b743763 100644 --- a/nix/reference-happ/Cargo.lock +++ b/nix/reference-happ/Cargo.lock @@ -697,9 +697,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.7.1" +version = "1.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8318a53db07bb3f8dca91a600466bdb3f2eaadeedfdbcf02e1accbad9271ba50" +checksum = "428d9aa8fbc0670b7b8d6030a7fadd0f86151cae55e4dbbece15f3780a3dfaf3" dependencies = [ "serde", ] @@ -774,9 +774,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.1.19" +version = "1.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d74707dde2ba56f86ae90effb3b43ddd369504387e718014de010cec7959800" +checksum = "45bcde016d64c21da4be18b655631e5ab6d3107607e71a73a9f53eb48aae23fb" dependencies = [ "jobserver", "libc", @@ -7426,9 +7426,9 @@ checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" [[package]] name = "unicode-normalization" -version = "0.1.23" +version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5" +checksum = "5033c97c4262335cded6d6fc3e5c18ab755e1a3dc96376350f3d8e9f009ad956" dependencies = [ "tinyvec", ] From 0eb9281d47c8d1432048919817da8d9226214f26 Mon Sep 17 00:00:00 2001 From: "guillem.cordoba" Date: Wed, 18 Sep 2024 15:56:02 +0200 Subject: [PATCH 3/9] Pinned nixpkgs --- flake.lock | 8 ++++++-- flake.nix | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/flake.lock b/flake.lock index 9f0a6da..07640fc 100644 --- a/flake.lock +++ b/flake.lock @@ -155,7 +155,7 @@ "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" } }, - "nixpkgs_2": { + "pnpmnixpkgs": { "locked": { "lastModified": 1726447378, "narHash": "sha256-2yV8nmYE1p9lfmLHhOCbYwQC/W8WYfGQABoGzJOb1JQ=", @@ -178,7 +178,11 @@ "crane" ], "holonix": "holonix", - "nixpkgs": "nixpkgs_2", + "nixpkgs": [ + "holonix", + "nixpkgs" + ], + "pnpmnixpkgs": "pnpmnixpkgs", "rust-overlay": [ "holonix", "rust-overlay" diff --git a/flake.nix b/flake.nix index 1f822cb..845fddf 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,7 @@ rec { inputs = { - # nixpkgs.follows = "holonix/nixpkgs"; - nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; + nixpkgs.follows = "holonix/nixpkgs"; + pnpmnixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; holonix.url = "github:holochain/holonix/main-0.3"; rust-overlay.follows = "holonix/rust-overlay"; @@ -236,7 +236,7 @@ rec { " wrapProgram $out/bin/npm \\\n --run ${packages.npm-warning}/bin/echo-npm-warning\n "; }) pkgs.nodejs_20 - pkgs.pnpm + inputs'.pnpmnixpkgs.legacyPackages.pnpm packages.sync-npm-git-dependencies-with-nix ]; From 063f83fa6ae80e18a78fc79455ebfb52e7e12411 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 19 Sep 2024 07:11:02 +0000 Subject: [PATCH 4/9] [create-pull-request] automated change (#83) Co-authored-by: guillemcordoba --- nix/fixtures/module-repo/Cargo.lock | 8 ++++---- nix/reference-happ/Cargo.lock | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/nix/fixtures/module-repo/Cargo.lock b/nix/fixtures/module-repo/Cargo.lock index 91785ca..2fe1be4 100644 --- a/nix/fixtures/module-repo/Cargo.lock +++ b/nix/fixtures/module-repo/Cargo.lock @@ -774,9 +774,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.1.20" +version = "1.1.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45bcde016d64c21da4be18b655631e5ab6d3107607e71a73a9f53eb48aae23fb" +checksum = "07b1695e2c7e8fc85310cde85aeaab7e3097f593c91d209d3f9df76c928100f0" dependencies = [ "jobserver", "libc", @@ -3968,9 +3968,9 @@ dependencies = [ [[package]] name = "libsodium-sys-stable" -version = "1.21.1" +version = "1.21.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fd1882b85f01cdd4021c0664fd897710a04c5d01b593a5a70e1b0baa999c1f8" +checksum = "42631d334de875c636a1aae7adb515653ac2e771e5a2ce74b1053f5a4412df3a" dependencies = [ "cc", "libc", diff --git a/nix/reference-happ/Cargo.lock b/nix/reference-happ/Cargo.lock index b743763..2c963a0 100644 --- a/nix/reference-happ/Cargo.lock +++ b/nix/reference-happ/Cargo.lock @@ -774,9 +774,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.1.20" +version = "1.1.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45bcde016d64c21da4be18b655631e5ab6d3107607e71a73a9f53eb48aae23fb" +checksum = "07b1695e2c7e8fc85310cde85aeaab7e3097f593c91d209d3f9df76c928100f0" dependencies = [ "jobserver", "libc", @@ -3968,9 +3968,9 @@ dependencies = [ [[package]] name = "libsodium-sys-stable" -version = "1.21.1" +version = "1.21.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fd1882b85f01cdd4021c0664fd897710a04c5d01b593a5a70e1b0baa999c1f8" +checksum = "42631d334de875c636a1aae7adb515653ac2e771e5a2ce74b1053f5a4412df3a" dependencies = [ "cc", "libc", From 68a5f3b388759e3061aebc4cf06b923d449c40ae Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 20 Sep 2024 07:11:24 +0000 Subject: [PATCH 5/9] [create-pull-request] automated change (#84) Co-authored-by: guillemcordoba --- nix/fixtures/module-repo/Cargo.lock | 12 ++++++------ nix/reference-happ/Cargo.lock | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/nix/fixtures/module-repo/Cargo.lock b/nix/fixtures/module-repo/Cargo.lock index 2fe1be4..449f0f2 100644 --- a/nix/fixtures/module-repo/Cargo.lock +++ b/nix/fixtures/module-repo/Cargo.lock @@ -4816,9 +4816,9 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pest" -version = "2.7.12" +version = "2.7.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c73c26c01b8c87956cea613c907c9d6ecffd8d18a2a5908e5de0adfaa185cea" +checksum = "fdbef9d1d47087a895abd220ed25eb4ad973a5e26f6a4367b038c25e28dfc2d9" dependencies = [ "memchr", "thiserror", @@ -7463,15 +7463,15 @@ checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" [[package]] name = "unicode-width" -version = "0.1.13" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d" +checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" [[package]] name = "unicode-xid" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "229730647fbc343e3a80e463c1db7f78f3855d3f3739bee0dda773c9a037c90a" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" [[package]] name = "unicode_categories" diff --git a/nix/reference-happ/Cargo.lock b/nix/reference-happ/Cargo.lock index 2c963a0..12c11d3 100644 --- a/nix/reference-happ/Cargo.lock +++ b/nix/reference-happ/Cargo.lock @@ -4794,9 +4794,9 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pest" -version = "2.7.12" +version = "2.7.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c73c26c01b8c87956cea613c907c9d6ecffd8d18a2a5908e5de0adfaa185cea" +checksum = "fdbef9d1d47087a895abd220ed25eb4ad973a5e26f6a4367b038c25e28dfc2d9" dependencies = [ "memchr", "thiserror", @@ -7441,15 +7441,15 @@ checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" [[package]] name = "unicode-width" -version = "0.1.13" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d" +checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" [[package]] name = "unicode-xid" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "229730647fbc343e3a80e463c1db7f78f3855d3f3739bee0dda773c9a037c90a" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" [[package]] name = "unicode_categories" From afdf4c14703f8f944d8427f8d65e64da7a1d5b54 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 21 Sep 2024 07:10:01 +0000 Subject: [PATCH 6/9] [create-pull-request] automated change (#85) Co-authored-by: guillemcordoba --- flake.lock | 6 +++--- nix/fixtures/module-repo/Cargo.lock | 22 +++++++++++----------- nix/reference-happ/Cargo.lock | 22 +++++++++++----------- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/flake.lock b/flake.lock index 07640fc..7d202ab 100644 --- a/flake.lock +++ b/flake.lock @@ -157,11 +157,11 @@ }, "pnpmnixpkgs": { "locked": { - "lastModified": 1726447378, - "narHash": "sha256-2yV8nmYE1p9lfmLHhOCbYwQC/W8WYfGQABoGzJOb1JQ=", + "lastModified": 1726688310, + "narHash": "sha256-Xc9lEtentPCEtxc/F1e6jIZsd4MPDYv4Kugl9WtXlz0=", "owner": "nixos", "repo": "nixpkgs", - "rev": "086b448a5d54fd117f4dc2dee55c9f0ff461bdc1", + "rev": "dbebdd67a6006bb145d98c8debf9140ac7e651d0", "type": "github" }, "original": { diff --git a/nix/fixtures/module-repo/Cargo.lock b/nix/fixtures/module-repo/Cargo.lock index 449f0f2..d1302f6 100644 --- a/nix/fixtures/module-repo/Cargo.lock +++ b/nix/fixtures/module-repo/Cargo.lock @@ -870,9 +870,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.17" +version = "4.5.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e5a21b8495e732f1b3c364c9949b201ca7bae518c502c80256c96ad79eaf6ac" +checksum = "b0956a43b323ac1afaffc053ed5c4b7c1f1800bacd1683c353aabbb752515dd3" dependencies = [ "clap_builder", "clap_derive", @@ -880,9 +880,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.17" +version = "4.5.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cf2dd12af7a047ad9d6da2b6b249759a22a7abc0f474c1dae1777afa4b21a73" +checksum = "4d72166dd41634086d5803a47eb71ae740e61d84709c36f3c34110173db3961b" dependencies = [ "anstream", "anstyle", @@ -893,9 +893,9 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.5.13" +version = "4.5.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "501d359d5f3dcaf6ecdeee48833ae73ec6e42723a1e52419c79abf9507eec0a0" +checksum = "4ac6a0c7b1a9e9a5186361f67dfa1b88213572f427fb9ab038efb2bd8c582dab" dependencies = [ "heck 0.5.0", "proc-macro2", @@ -3299,7 +3299,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "232929e1d75fe899576a3d5c7416ad0d88dbfbb3c3d6aa00873a7408a50ddb88" dependencies = [ "ahash 0.8.11", - "clap 4.5.17", + "clap 4.5.18", "crossbeam-channel", "crossbeam-utils", "dashmap 6.1.0", @@ -3638,7 +3638,7 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "819b705dd8ef03a47b7d1d5df604cead7be890fcea864d028212252baa8ae649" dependencies = [ - "clap 4.5.17", + "clap 4.5.18", "futures", "kitsune_p2p_bin_data", "kitsune_p2p_types", @@ -6076,9 +6076,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.11.1" +version = "2.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75da29fe9b9b08fe9d6b22b5b4bcbc75d8db3aa31e639aa56bb62e9d46bfceaf" +checksum = "ea4a292869320c0272d7bc55a5a6aafaff59b4f63404a003887b679a2e05b4b6" dependencies = [ "core-foundation-sys", "libc", @@ -7392,7 +7392,7 @@ version = "0.0.14-alpha" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "afa882b51d1c4b4e86c9a43134674b856a8248c147d889c70c6d0f9d88541012" dependencies = [ - "clap 4.5.17", + "clap 4.5.18", "dirs", "futures", "if-addrs 0.10.2", diff --git a/nix/reference-happ/Cargo.lock b/nix/reference-happ/Cargo.lock index 12c11d3..3a8737a 100644 --- a/nix/reference-happ/Cargo.lock +++ b/nix/reference-happ/Cargo.lock @@ -870,9 +870,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.17" +version = "4.5.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e5a21b8495e732f1b3c364c9949b201ca7bae518c502c80256c96ad79eaf6ac" +checksum = "b0956a43b323ac1afaffc053ed5c4b7c1f1800bacd1683c353aabbb752515dd3" dependencies = [ "clap_builder", "clap_derive", @@ -880,9 +880,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.17" +version = "4.5.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cf2dd12af7a047ad9d6da2b6b249759a22a7abc0f474c1dae1777afa4b21a73" +checksum = "4d72166dd41634086d5803a47eb71ae740e61d84709c36f3c34110173db3961b" dependencies = [ "anstream", "anstyle", @@ -893,9 +893,9 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.5.13" +version = "4.5.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "501d359d5f3dcaf6ecdeee48833ae73ec6e42723a1e52419c79abf9507eec0a0" +checksum = "4ac6a0c7b1a9e9a5186361f67dfa1b88213572f427fb9ab038efb2bd8c582dab" dependencies = [ "heck 0.5.0", "proc-macro2", @@ -3299,7 +3299,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "232929e1d75fe899576a3d5c7416ad0d88dbfbb3c3d6aa00873a7408a50ddb88" dependencies = [ "ahash 0.8.11", - "clap 4.5.17", + "clap 4.5.18", "crossbeam-channel", "crossbeam-utils", "dashmap 6.1.0", @@ -3638,7 +3638,7 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "819b705dd8ef03a47b7d1d5df604cead7be890fcea864d028212252baa8ae649" dependencies = [ - "clap 4.5.17", + "clap 4.5.18", "futures", "kitsune_p2p_bin_data", "kitsune_p2p_types", @@ -6054,9 +6054,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.11.1" +version = "2.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75da29fe9b9b08fe9d6b22b5b4bcbc75d8db3aa31e639aa56bb62e9d46bfceaf" +checksum = "ea4a292869320c0272d7bc55a5a6aafaff59b4f63404a003887b679a2e05b4b6" dependencies = [ "core-foundation-sys", "libc", @@ -7370,7 +7370,7 @@ version = "0.0.14-alpha" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "afa882b51d1c4b4e86c9a43134674b856a8248c147d889c70c6d0f9d88541012" dependencies = [ - "clap 4.5.17", + "clap 4.5.18", "dirs", "futures", "if-addrs 0.10.2", From 43e8f3e99879ecaa863e6e12affaa8efc65df26d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 22 Sep 2024 07:09:42 +0000 Subject: [PATCH 7/9] [create-pull-request] automated change (#86) Co-authored-by: guillemcordoba --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 7d202ab..e436715 100644 --- a/flake.lock +++ b/flake.lock @@ -157,11 +157,11 @@ }, "pnpmnixpkgs": { "locked": { - "lastModified": 1726688310, - "narHash": "sha256-Xc9lEtentPCEtxc/F1e6jIZsd4MPDYv4Kugl9WtXlz0=", + "lastModified": 1726838390, + "narHash": "sha256-NmcVhGElxDbmEWzgXsyAjlRhUus/nEqPC5So7BOJLUM=", "owner": "nixos", "repo": "nixpkgs", - "rev": "dbebdd67a6006bb145d98c8debf9140ac7e651d0", + "rev": "944b2aea7f0a2d7c79f72468106bc5510cbf5101", "type": "github" }, "original": { From 1c003eccd0ce5e8a83408017b70b9126930c0569 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 23 Sep 2024 07:11:20 +0000 Subject: [PATCH 8/9] [create-pull-request] automated change (#87) Co-authored-by: guillemcordoba --- nix/fixtures/module-repo/Cargo.lock | 12 ++++++------ nix/reference-happ/Cargo.lock | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/nix/fixtures/module-repo/Cargo.lock b/nix/fixtures/module-repo/Cargo.lock index d1302f6..33cf48d 100644 --- a/nix/fixtures/module-repo/Cargo.lock +++ b/nix/fixtures/module-repo/Cargo.lock @@ -6355,9 +6355,9 @@ checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" [[package]] name = "simdutf8" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f27f6278552951f1f2b8cf9da965d10969b2efdea95a6ec47987ab46edfe263a" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" [[package]] name = "siphasher" @@ -6843,18 +6843,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.63" +version = "1.0.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724" +checksum = "d50af8abc119fb8bb6dbabcfa89656f46f84aa0ac7688088608076ad2b459a84" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.63" +version = "1.0.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261" +checksum = "08904e7672f5eb876eaaf87e0ce17857500934f4981c4a0ab2b4aa98baac7fc3" dependencies = [ "proc-macro2", "quote", diff --git a/nix/reference-happ/Cargo.lock b/nix/reference-happ/Cargo.lock index 3a8737a..1806b68 100644 --- a/nix/reference-happ/Cargo.lock +++ b/nix/reference-happ/Cargo.lock @@ -6333,9 +6333,9 @@ checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" [[package]] name = "simdutf8" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f27f6278552951f1f2b8cf9da965d10969b2efdea95a6ec47987ab46edfe263a" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" [[package]] name = "siphasher" @@ -6821,18 +6821,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.63" +version = "1.0.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724" +checksum = "d50af8abc119fb8bb6dbabcfa89656f46f84aa0ac7688088608076ad2b459a84" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.63" +version = "1.0.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261" +checksum = "08904e7672f5eb876eaaf87e0ce17857500934f4981c4a0ab2b4aa98baac7fc3" dependencies = [ "proc-macro2", "quote", From 316e12a57992a63d5c81beecf02382f0a8cc5a3d Mon Sep 17 00:00:00 2001 From: "guillem.cordoba" Date: Mon, 23 Sep 2024 10:33:16 +0200 Subject: [PATCH 9/9] meta.debug again --- flake.nix | 104 ++++----- nix/dna.nix | 64 +++--- nix/fixtures/app-repo/flake.lock | 322 ++++++++++++++------------- nix/fixtures/module-repo/flake.lock | 33 +-- nix/fixtures/service-repo/flake.lock | 220 +++++++++--------- nix/happ.nix | 51 ++--- nix/zome.nix | 126 ++++++----- 7 files changed, 459 insertions(+), 461 deletions(-) diff --git a/flake.nix b/flake.nix index 845fddf..907c91a 100644 --- a/flake.nix +++ b/flake.nix @@ -39,48 +39,15 @@ rec { ]); - filterByHolochainPackageType = holochainPackageType: packages: - inputs.nixpkgs.lib.filterAttrs (key: value: - (builtins.hasAttr "meta" value) - && (builtins.hasAttr "holochainPackageType" value.meta) - && value.meta.holochainPackageType == holochainPackageType) - packages; - - filterZomes = filterByHolochainPackageType "zome"; - filterDnas = filterByHolochainPackageType "dna"; - filterHapps = filterByHolochainPackageType "happ"; - filterNpmPackages = filterByHolochainPackageType "npm"; - - holochainPkgs = { system }: - let - pkgs = import inputs.nixpkgs { - inherit system; - overlays = [ (import inputs.rust-overlay) ]; - }; - in pkgs; - - holochainRustToolchain = { system }: - let - pkgs = holochainPkgs { inherit system; }; - - rustToolchain = pkgs.rust-bin.stable."1.77.2".minimal.override { - # Set the build targets supported by the toolchain, - # wasm32-unknown-unknown is required for trunk. - targets = [ "wasm32-unknown-unknown" ]; - }; - in rustToolchain; + zomeCargoArtifacts = { system, craneLib ? (let - holochainCraneLib = { system }: - let - pkgs = holochainPkgs { inherit system; }; - rustToolchain = holochainRustToolchain { inherit system; }; - craneLib = - (inputs.crane.mkLib pkgs).overrideToolchain rustToolchain; - in craneLib; - - zomeCargoArtifacts = { system - , craneLib ? (holochainCraneLib { inherit system; }), debug ? false - }: + pkgs = import inputs.nixpkgs { + inherit system; + overlays = [ (import inputs.rust-overlay) ]; + }; + craneLib = (inputs.crane.mkLib pkgs).overrideToolchain + inputs.holonix.outputs.packages.${system}.rust; + in craneLib), debug ? false }: let src = craneLib.cleanCargoSource (craneLib.path ./nix/reference-happ); @@ -98,8 +65,12 @@ rec { holochainCargoArtifacts = { system }: let - pkgs = holochainPkgs { inherit system; }; - craneLib = holochainCraneLib { inherit system; }; + pkgs = import inputs.nixpkgs { + inherit system; + overlays = [ (import inputs.rust-overlay) ]; + }; + craneLib = (inputs.crane.mkLib pkgs).overrideToolchain + inputs.holonix.outputs.packages.${system}.rust; buildInputs = holochainDeps { inherit pkgs; @@ -122,40 +93,37 @@ rec { in cargoArtifacts; rustZome = { crateCargoToml, system, workspacePath - , nonWasmCrates ? [ ], cargoArtifacts ? null - , matchingZomeHash ? null }: + , cargoArtifacts ? null, matchingZomeHash ? null }: let + pkgs = import inputs.nixpkgs { + inherit system; + overlays = [ (import inputs.rust-overlay) ]; + }; + deterministicCraneLib = let - pkgs = import inputs.nixpkgs { - system = "x86_64-linux"; - overlays = [ (import inputs.rust-overlay) ]; - }; - - rustToolchain = pkgs.rust-bin.stable."1.77.2".minimal.override { - # Set the build targets supported by the toolchain, - # wasm32-unknown-unknown is required for trunk. - targets = [ "wasm32-unknown-unknown" ]; - }; + rustToolchain = + inputs.holonix.outputs.packages."x86_64-linux".rust; in (inputs.crane.mkLib pkgs).overrideToolchain rustToolchain; - pkgs = holochainPkgs { inherit system; }; - craneLib = holochainCraneLib { inherit system; }; - + craneLib = (inputs.crane.mkLib pkgs).overrideToolchain + inputs.holonix.outputs.packages.${system}.rust; zome-wasm-hash = (outputs inputs).packages.${system}.zome-wasm-hash; in pkgs.callPackage ./nix/zome.nix { inherit deterministicCraneLib craneLib crateCargoToml - cargoArtifacts nonWasmCrates workspacePath matchingZomeHash - zome-wasm-hash; - referenceZomeCargoArtifacts = flake.lib.zomeCargoArtifacts; + cargoArtifacts workspacePath matchingZomeHash zome-wasm-hash; }; sweettest = { system, dna, workspacePath, crateCargoToml , buildInputs ? [ ], nativeBuildInputs ? [ ], cargoArtifacts ? null }: let - pkgs = holochainPkgs { inherit system; }; - craneLib = holochainCraneLib { inherit system; }; + pkgs = import inputs.nixpkgs { + inherit system; + overlays = [ (import inputs.rust-overlay) ]; + }; + craneLib = (inputs.crane.mkLib pkgs).overrideToolchain + inputs.holonix.outputs.packages.${system}.rust; in pkgs.callPackage ./nix/sweettest.nix { inherit dna craneLib crateCargoToml cargoArtifacts workspacePath; buildInputs = buildInputs ++ holochainDeps { @@ -165,7 +133,10 @@ rec { }; dna = { system, dnaManifest, zomes, matchingIntegrityDna ? null }: let - pkgs = holochainPkgs { inherit system; }; + pkgs = import inputs.nixpkgs { + inherit system; + overlays = [ (import inputs.rust-overlay) ]; + }; compare-dnas-integrity = (outputs inputs).packages.${system}.compare-dnas-integrity; holochain = inputs.holonix.outputs.packages.${system}.holochain; @@ -176,7 +147,10 @@ rec { }; happ = { system, happManifest, dnas }: let - pkgs = holochainPkgs { inherit system; }; + pkgs = import inputs.nixpkgs { + inherit system; + overlays = [ (import inputs.rust-overlay) ]; + }; holochain = inputs.holonix.outputs.packages.${system}.holochain; in pkgs.callPackage ./nix/happ.nix { inherit dnas holochain happManifest; diff --git a/nix/dna.nix b/nix/dna.nix index e6168e6..84a7ce9 100644 --- a/nix/dna.nix +++ b/nix/dna.nix @@ -21,51 +21,34 @@ let dnaManifestJson = writeText "dna.json" (builtins.toJSON manifest'); dnaManifestYaml = runCommandLocal "json-to-yaml" { } " ${json2yaml}/bin/json2yaml ${dnaManifestJson} $out\n"; # Recurse over the zomes, and add the correct bundled zome package by name - release = runCommandLocal manifest.name { - srcs = builtins.map (zome: zome.meta.release) zomeSrcs; - meta = { holochainPackageType = "dna"; }; - } '' - mkdir workdir - cp ${dnaManifestYaml} workdir/dna.yaml + # Debug package + debug = runCommandLocal manifest.name { + srcs = builtins.map (zome: zome.meta.debug) zomeSrcs; + } '' + mkdir workdir + cp ${dnaManifestYaml} workdir/dna.yaml + ${ builtins.toString (builtins.map (zome: '' - cp ${zomes.${zome.name}.meta.release} ./workdir/${zome.name}.wasm + cp ${zomes.${zome.name}.meta.debug} ./workdir/${zome.name}.wasm '') manifest'.integrity.zomes) } ${ builtins.toString (builtins.map (zome: '' - cp ${zomes.${zome.name}.meta.release} ./workdir/${zome.name}.wasm + cp ${zomes.${zome.name}.meta.debug} ./workdir/${zome.name}.wasm '') manifest'.coordinator.zomes) } - + ${holochain}/bin/hc dna pack workdir mv workdir/${manifest.name}.dna $out ''; - guardedRelease = if matchingIntegrityDna != null then - runCommandLocal "check-match-dna-${manifest.name}-integrity" { - srcs = [ release matchingIntegrityDna.meta.release ]; - buildInputs = [ compare-dnas-integrity ]; - } '' - ${compare-dnas-integrity}/bin/compare-dnas-integrity ${matchingIntegrityDna.meta.release} ${release} - cp ${release} $out - '' - else - release; + release = runCommandLocal "${manifest.name}-release" { srcs = zomeSrcs; } '' + mkdir workdir + cp ${dnaManifestYaml} workdir/dna.yaml - # Debug package - debug = runCommandLocal manifest.name { - srcs = zomeSrcs; - meta = { - release = guardedRelease; - holochainPackageType = "dna"; - }; - } '' - mkdir workdir - cp ${dnaManifestYaml} workdir/dna.yaml - ${ builtins.toString (builtins.map (zome: '' cp ${zomes.${zome.name}} ./workdir/${zome.name}.wasm @@ -76,8 +59,25 @@ let cp ${zomes.${zome.name}} ./workdir/${zome.name}.wasm '') manifest'.coordinator.zomes) } - + ${holochain}/bin/hc dna pack workdir mv workdir/${manifest.name}.dna $out ''; -in debug + + guardedRelease = if matchingIntegrityDna != null then + runCommandLocal "check-match-dna-${manifest.name}-integrity" { + srcs = [ release matchingIntegrityDna ]; + buildInputs = [ compare-dnas-integrity ]; + } '' + ${compare-dnas-integrity}/bin/compare-dnas-integrity ${matchingIntegrityDna} ${release} + cp ${release} $out + '' + else + release; + +in runCommandLocal manifest.name { + meta = { inherit debug; }; + outputs = [ "out" ]; +} '' + cp ${guardedRelease} $out +'' diff --git a/nix/fixtures/app-repo/flake.lock b/nix/fixtures/app-repo/flake.lock index cd90cd0..ec994c9 100644 --- a/nix/fixtures/app-repo/flake.lock +++ b/nix/fixtures/app-repo/flake.lock @@ -1,19 +1,12 @@ { "nodes": { "crane": { - "inputs": { - "nixpkgs": [ - "hc-infra", - "holonix", - "nixpkgs" - ] - }, "locked": { - "lastModified": 1724537630, - "narHash": "sha256-gpqINM71zp3kw5XYwUXa84ZtPnCmLLnByuFoYesT1bY=", + "lastModified": 1725125250, + "narHash": "sha256-CB20rDD5eHikF6mMTTJdwPP1qvyoiyyw1RDUzwIaIF8=", "owner": "ipetkov", "repo": "crane", - "rev": "3e08f4b1fc9aaede5dd511d8f5f4ef27501e49b0", + "rev": "96fd12c7100e9e05fa1a0a5bd108525600ce282f", "type": "github" }, "original": { @@ -46,18 +39,12 @@ } }, "crane_2": { - "inputs": { - "nixpkgs": [ - "holonix", - "nixpkgs" - ] - }, "locked": { - "lastModified": 1724537630, - "narHash": "sha256-gpqINM71zp3kw5XYwUXa84ZtPnCmLLnByuFoYesT1bY=", + "lastModified": 1725125250, + "narHash": "sha256-CB20rDD5eHikF6mMTTJdwPP1qvyoiyyw1RDUzwIaIF8=", "owner": "ipetkov", "repo": "crane", - "rev": "3e08f4b1fc9aaede5dd511d8f5f4ef27501e49b0", + "rev": "96fd12c7100e9e05fa1a0a5bd108525600ce282f", "type": "github" }, "original": { @@ -67,20 +54,12 @@ } }, "crane_3": { - "inputs": { - "nixpkgs": [ - "service", - "hc-infra", - "holonix", - "nixpkgs" - ] - }, "locked": { - "lastModified": 1724537630, - "narHash": "sha256-gpqINM71zp3kw5XYwUXa84ZtPnCmLLnByuFoYesT1bY=", + "lastModified": 1725125250, + "narHash": "sha256-CB20rDD5eHikF6mMTTJdwPP1qvyoiyyw1RDUzwIaIF8=", "owner": "ipetkov", "repo": "crane", - "rev": "3e08f4b1fc9aaede5dd511d8f5f4ef27501e49b0", + "rev": "96fd12c7100e9e05fa1a0a5bd108525600ce282f", "type": "github" }, "original": { @@ -90,19 +69,12 @@ } }, "crane_4": { - "inputs": { - "nixpkgs": [ - "service", - "holonix", - "nixpkgs" - ] - }, "locked": { - "lastModified": 1724537630, - "narHash": "sha256-gpqINM71zp3kw5XYwUXa84ZtPnCmLLnByuFoYesT1bY=", + "lastModified": 1725125250, + "narHash": "sha256-CB20rDD5eHikF6mMTTJdwPP1qvyoiyyw1RDUzwIaIF8=", "owner": "ipetkov", "repo": "crane", - "rev": "3e08f4b1fc9aaede5dd511d8f5f4ef27501e49b0", + "rev": "96fd12c7100e9e05fa1a0a5bd108525600ce282f", "type": "github" }, "original": { @@ -112,21 +84,12 @@ } }, "crane_5": { - "inputs": { - "nixpkgs": [ - "service", - "module", - "hc-infra", - "holonix", - "nixpkgs" - ] - }, "locked": { - "lastModified": 1724537630, - "narHash": "sha256-gpqINM71zp3kw5XYwUXa84ZtPnCmLLnByuFoYesT1bY=", + "lastModified": 1725125250, + "narHash": "sha256-CB20rDD5eHikF6mMTTJdwPP1qvyoiyyw1RDUzwIaIF8=", "owner": "ipetkov", "repo": "crane", - "rev": "3e08f4b1fc9aaede5dd511d8f5f4ef27501e49b0", + "rev": "96fd12c7100e9e05fa1a0a5bd108525600ce282f", "type": "github" }, "original": { @@ -136,20 +99,12 @@ } }, "crane_6": { - "inputs": { - "nixpkgs": [ - "service", - "module", - "holonix", - "nixpkgs" - ] - }, "locked": { - "lastModified": 1724537630, - "narHash": "sha256-gpqINM71zp3kw5XYwUXa84ZtPnCmLLnByuFoYesT1bY=", + "lastModified": 1725125250, + "narHash": "sha256-CB20rDD5eHikF6mMTTJdwPP1qvyoiyyw1RDUzwIaIF8=", "owner": "ipetkov", "repo": "crane", - "rev": "3e08f4b1fc9aaede5dd511d8f5f4ef27501e49b0", + "rev": "96fd12c7100e9e05fa1a0a5bd108525600ce282f", "type": "github" }, "original": { @@ -236,11 +191,11 @@ "nixpkgs-lib": "nixpkgs-lib" }, "locked": { - "lastModified": 1722555600, - "narHash": "sha256-XOQkdLafnb/p9ij77byFQjDf5m5QYl9b2REiVClC+x4=", + "lastModified": 1725234343, + "narHash": "sha256-+ebgonl3NbiKD2UD0x4BszCZQ6sTfL4xioaM49o5B3Y=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "8471fe90ad337a8074e957b69ca4d0089218391d", + "rev": "567b938d64d4b4112ee253b9274472dc3a346eb6", "type": "github" }, "original": { @@ -272,11 +227,11 @@ "nixpkgs-lib": "nixpkgs-lib_2" }, "locked": { - "lastModified": 1722555600, - "narHash": "sha256-XOQkdLafnb/p9ij77byFQjDf5m5QYl9b2REiVClC+x4=", + "lastModified": 1725234343, + "narHash": "sha256-+ebgonl3NbiKD2UD0x4BszCZQ6sTfL4xioaM49o5B3Y=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "8471fe90ad337a8074e957b69ca4d0089218391d", + "rev": "567b938d64d4b4112ee253b9274472dc3a346eb6", "type": "github" }, "original": { @@ -290,11 +245,11 @@ "nixpkgs-lib": "nixpkgs-lib_3" }, "locked": { - "lastModified": 1722555600, - "narHash": "sha256-XOQkdLafnb/p9ij77byFQjDf5m5QYl9b2REiVClC+x4=", + "lastModified": 1725234343, + "narHash": "sha256-+ebgonl3NbiKD2UD0x4BszCZQ6sTfL4xioaM49o5B3Y=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "8471fe90ad337a8074e957b69ca4d0089218391d", + "rev": "567b938d64d4b4112ee253b9274472dc3a346eb6", "type": "github" }, "original": { @@ -308,11 +263,11 @@ "nixpkgs-lib": "nixpkgs-lib_4" }, "locked": { - "lastModified": 1722555600, - "narHash": "sha256-XOQkdLafnb/p9ij77byFQjDf5m5QYl9b2REiVClC+x4=", + "lastModified": 1725234343, + "narHash": "sha256-+ebgonl3NbiKD2UD0x4BszCZQ6sTfL4xioaM49o5B3Y=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "8471fe90ad337a8074e957b69ca4d0089218391d", + "rev": "567b938d64d4b4112ee253b9274472dc3a346eb6", "type": "github" }, "original": { @@ -326,11 +281,11 @@ "nixpkgs-lib": "nixpkgs-lib_5" }, "locked": { - "lastModified": 1722555600, - "narHash": "sha256-XOQkdLafnb/p9ij77byFQjDf5m5QYl9b2REiVClC+x4=", + "lastModified": 1725234343, + "narHash": "sha256-+ebgonl3NbiKD2UD0x4BszCZQ6sTfL4xioaM49o5B3Y=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "8471fe90ad337a8074e957b69ca4d0089218391d", + "rev": "567b938d64d4b4112ee253b9274472dc3a346eb6", "type": "github" }, "original": { @@ -344,11 +299,11 @@ "nixpkgs-lib": "nixpkgs-lib_6" }, "locked": { - "lastModified": 1722555600, - "narHash": "sha256-XOQkdLafnb/p9ij77byFQjDf5m5QYl9b2REiVClC+x4=", + "lastModified": 1725234343, + "narHash": "sha256-+ebgonl3NbiKD2UD0x4BszCZQ6sTfL4xioaM49o5B3Y=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "8471fe90ad337a8074e957b69ca4d0089218391d", + "rev": "567b938d64d4b4112ee253b9274472dc3a346eb6", "type": "github" }, "original": { @@ -424,6 +379,7 @@ "holonix", "nixpkgs" ], + "pnpmnixpkgs": "pnpmnixpkgs", "rust-overlay": [ "hc-infra", "holonix", @@ -432,7 +388,7 @@ }, "locked": { "lastModified": 0, - "narHash": "sha256-A8xjiS0uEHKOXZti0HMektLC3veAAlCsFRbZ0Vfsq8s=", + "narHash": "sha256-IbFRR8hA0ARvzlSkQdFCAzI6kQFbZ/rQvMs7B64F9x4=", "path": "./../../..", "type": "path" }, @@ -456,6 +412,7 @@ "holonix", "nixpkgs" ], + "pnpmnixpkgs": "pnpmnixpkgs_2", "rust-overlay": [ "service", "hc-infra", @@ -465,7 +422,7 @@ }, "locked": { "lastModified": 0, - "narHash": "sha256-4zKDty4KLm/wIVEK+Adhx97uQJuweDrQ9sXe/Wd/9r8=", + "narHash": "sha256-1ZH7ZjjEcQ8IGWNcY/FnExFhP7zruMAbzgxJ/cI/H80=", "path": "./../../..", "type": "path" }, @@ -491,6 +448,7 @@ "holonix", "nixpkgs" ], + "pnpmnixpkgs": "pnpmnixpkgs_3", "rust-overlay": [ "service", "module", @@ -501,7 +459,7 @@ }, "locked": { "lastModified": 0, - "narHash": "sha256-M5JSSHYfat7zQbqhnmfYS9zIo4OwruRDpSZ5Z17mWhc=", + "narHash": "sha256-r5Tpt72DkGoR9CEOKlj2Usqlp+RrQjlbcQP1c604fmc=", "path": "./../../..", "type": "path" }, @@ -539,11 +497,11 @@ ] }, "locked": { - "lastModified": 1725274427, - "narHash": "sha256-JSPsz9hN9TrlAd7Pg7u7tTz2uFLyHR8JCvC0gXGwBVo=", + "lastModified": 1725282556, + "narHash": "sha256-B0DFFCS3UWDpHutqJpQz/IUmnTjITnJbVEZTKD321pw=", "owner": "holochain-open-dev", "repo": "infrastructure", - "rev": "4e152d1d93cc1c41985bd7dc79088a47360d6a09", + "rev": "83ee6861e965d15211145484c44ce22bb12fd071", "type": "github" }, "original": { @@ -578,11 +536,11 @@ ] }, "locked": { - "lastModified": 1725274427, - "narHash": "sha256-JSPsz9hN9TrlAd7Pg7u7tTz2uFLyHR8JCvC0gXGwBVo=", + "lastModified": 1725282556, + "narHash": "sha256-B0DFFCS3UWDpHutqJpQz/IUmnTjITnJbVEZTKD321pw=", "owner": "holochain-open-dev", "repo": "infrastructure", - "rev": "4e152d1d93cc1c41985bd7dc79088a47360d6a09", + "rev": "83ee6861e965d15211145484c44ce22bb12fd071", "type": "github" }, "original": { @@ -1113,11 +1071,11 @@ "rust-overlay": "rust-overlay" }, "locked": { - "lastModified": 1724935136, - "narHash": "sha256-TAxGCtBJXv/B6gdBD/TNisuRAs7tC9ati89DZr73ddo=", + "lastModified": 1725293701, + "narHash": "sha256-dwb1tzr7kO8u5LllGqJiIaKe2btsKaMHX1gecgtwruM=", "owner": "holochain", "repo": "holonix", - "rev": "f1a543d4188adbe6ff1cd9229120d5fe3cb96103", + "rev": "fb9e3c067052cf628d1b22a1802f016eaf1d3e3e", "type": "github" }, "original": { @@ -1165,11 +1123,11 @@ "rust-overlay": "rust-overlay_2" }, "locked": { - "lastModified": 1724935136, - "narHash": "sha256-TAxGCtBJXv/B6gdBD/TNisuRAs7tC9ati89DZr73ddo=", + "lastModified": 1725293701, + "narHash": "sha256-dwb1tzr7kO8u5LllGqJiIaKe2btsKaMHX1gecgtwruM=", "owner": "holochain", "repo": "holonix", - "rev": "f1a543d4188adbe6ff1cd9229120d5fe3cb96103", + "rev": "fb9e3c067052cf628d1b22a1802f016eaf1d3e3e", "type": "github" }, "original": { @@ -1191,11 +1149,11 @@ "rust-overlay": "rust-overlay_3" }, "locked": { - "lastModified": 1724935136, - "narHash": "sha256-TAxGCtBJXv/B6gdBD/TNisuRAs7tC9ati89DZr73ddo=", + "lastModified": 1725293701, + "narHash": "sha256-dwb1tzr7kO8u5LllGqJiIaKe2btsKaMHX1gecgtwruM=", "owner": "holochain", "repo": "holonix", - "rev": "f1a543d4188adbe6ff1cd9229120d5fe3cb96103", + "rev": "fb9e3c067052cf628d1b22a1802f016eaf1d3e3e", "type": "github" }, "original": { @@ -1217,11 +1175,11 @@ "rust-overlay": "rust-overlay_4" }, "locked": { - "lastModified": 1724935136, - "narHash": "sha256-TAxGCtBJXv/B6gdBD/TNisuRAs7tC9ati89DZr73ddo=", + "lastModified": 1725293701, + "narHash": "sha256-dwb1tzr7kO8u5LllGqJiIaKe2btsKaMHX1gecgtwruM=", "owner": "holochain", "repo": "holonix", - "rev": "f1a543d4188adbe6ff1cd9229120d5fe3cb96103", + "rev": "fb9e3c067052cf628d1b22a1802f016eaf1d3e3e", "type": "github" }, "original": { @@ -1243,11 +1201,11 @@ "rust-overlay": "rust-overlay_5" }, "locked": { - "lastModified": 1724935136, - "narHash": "sha256-TAxGCtBJXv/B6gdBD/TNisuRAs7tC9ati89DZr73ddo=", + "lastModified": 1725293701, + "narHash": "sha256-dwb1tzr7kO8u5LllGqJiIaKe2btsKaMHX1gecgtwruM=", "owner": "holochain", "repo": "holonix", - "rev": "f1a543d4188adbe6ff1cd9229120d5fe3cb96103", + "rev": "fb9e3c067052cf628d1b22a1802f016eaf1d3e3e", "type": "github" }, "original": { @@ -1269,11 +1227,11 @@ "rust-overlay": "rust-overlay_6" }, "locked": { - "lastModified": 1724935136, - "narHash": "sha256-TAxGCtBJXv/B6gdBD/TNisuRAs7tC9ati89DZr73ddo=", + "lastModified": 1725293701, + "narHash": "sha256-dwb1tzr7kO8u5LllGqJiIaKe2btsKaMHX1gecgtwruM=", "owner": "holochain", "repo": "holonix", - "rev": "f1a543d4188adbe6ff1cd9229120d5fe3cb96103", + "rev": "fb9e3c067052cf628d1b22a1802f016eaf1d3e3e", "type": "github" }, "original": { @@ -1545,7 +1503,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-lb+DYtxxTjgR1n2M1VP7XEIzvXC0d5YgWc+5djN4jbI=", + "narHash": "sha256-tNwS14nEIYN9C20NKsxgFlcePQx9BH9zYsqRJTa2e7E=", "path": "./../module-repo", "type": "path" }, @@ -1572,14 +1530,14 @@ }, "nixpkgs-lib": { "locked": { - "lastModified": 1722555339, - "narHash": "sha256-uFf2QeW7eAHlYXuDktm9c25OxOyCoUOQmh5SZ9amE5Q=", + "lastModified": 1725233747, + "narHash": "sha256-Ss8QWLXdr2JCBPcYChJhz4xJm+h/xjl4G0c0XlP6a74=", "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz" + "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" }, "original": { "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz" + "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" } }, "nixpkgs-lib_10": { @@ -1596,62 +1554,62 @@ }, "nixpkgs-lib_2": { "locked": { - "lastModified": 1722555339, - "narHash": "sha256-uFf2QeW7eAHlYXuDktm9c25OxOyCoUOQmh5SZ9amE5Q=", + "lastModified": 1725233747, + "narHash": "sha256-Ss8QWLXdr2JCBPcYChJhz4xJm+h/xjl4G0c0XlP6a74=", "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz" + "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" }, "original": { "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz" + "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" } }, "nixpkgs-lib_3": { "locked": { - "lastModified": 1722555339, - "narHash": "sha256-uFf2QeW7eAHlYXuDktm9c25OxOyCoUOQmh5SZ9amE5Q=", + "lastModified": 1725233747, + "narHash": "sha256-Ss8QWLXdr2JCBPcYChJhz4xJm+h/xjl4G0c0XlP6a74=", "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz" + "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" }, "original": { "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz" + "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" } }, "nixpkgs-lib_4": { "locked": { - "lastModified": 1722555339, - "narHash": "sha256-uFf2QeW7eAHlYXuDktm9c25OxOyCoUOQmh5SZ9amE5Q=", + "lastModified": 1725233747, + "narHash": "sha256-Ss8QWLXdr2JCBPcYChJhz4xJm+h/xjl4G0c0XlP6a74=", "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz" + "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" }, "original": { "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz" + "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" } }, "nixpkgs-lib_5": { "locked": { - "lastModified": 1722555339, - "narHash": "sha256-uFf2QeW7eAHlYXuDktm9c25OxOyCoUOQmh5SZ9amE5Q=", + "lastModified": 1725233747, + "narHash": "sha256-Ss8QWLXdr2JCBPcYChJhz4xJm+h/xjl4G0c0XlP6a74=", "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz" + "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" }, "original": { "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz" + "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" } }, "nixpkgs-lib_6": { "locked": { - "lastModified": 1722555339, - "narHash": "sha256-uFf2QeW7eAHlYXuDktm9c25OxOyCoUOQmh5SZ9amE5Q=", + "lastModified": 1725233747, + "narHash": "sha256-Ss8QWLXdr2JCBPcYChJhz4xJm+h/xjl4G0c0XlP6a74=", "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz" + "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" }, "original": { "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz" + "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" } }, "nixpkgs-lib_7": { @@ -1834,6 +1792,54 @@ "type": "github" } }, + "pnpmnixpkgs": { + "locked": { + "lastModified": 1726838390, + "narHash": "sha256-NmcVhGElxDbmEWzgXsyAjlRhUus/nEqPC5So7BOJLUM=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "944b2aea7f0a2d7c79f72468106bc5510cbf5101", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-24.05", + "repo": "nixpkgs", + "type": "github" + } + }, + "pnpmnixpkgs_2": { + "locked": { + "lastModified": 1726838390, + "narHash": "sha256-NmcVhGElxDbmEWzgXsyAjlRhUus/nEqPC5So7BOJLUM=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "944b2aea7f0a2d7c79f72468106bc5510cbf5101", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-24.05", + "repo": "nixpkgs", + "type": "github" + } + }, + "pnpmnixpkgs_3": { + "locked": { + "lastModified": 1726838390, + "narHash": "sha256-NmcVhGElxDbmEWzgXsyAjlRhUus/nEqPC5So7BOJLUM=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "944b2aea7f0a2d7c79f72468106bc5510cbf5101", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-24.05", + "repo": "nixpkgs", + "type": "github" + } + }, "profiles": { "inputs": { "hc-infra": "hc-infra_4", @@ -1847,11 +1853,11 @@ ] }, "locked": { - "lastModified": 1725281282, - "narHash": "sha256-H1iovFsGcg1Ytu6lOmbnw6fy4uiUOfNWRMdYyS1SxCs=", + "lastModified": 1725282695, + "narHash": "sha256-ZtozbZ0D6Z0vUlz7FzBkuNf5/7JE1syZ0CuRi/75bas=", "owner": "holochain-open-dev", "repo": "profiles", - "rev": "a014dc21425ddaf244de3bff932982a44b37ce1f", + "rev": "6000dc6c04194429f2768517670366c411c4a03a", "type": "github" }, "original": { @@ -1873,11 +1879,11 @@ ] }, "locked": { - "lastModified": 1725281282, - "narHash": "sha256-H1iovFsGcg1Ytu6lOmbnw6fy4uiUOfNWRMdYyS1SxCs=", + "lastModified": 1725282695, + "narHash": "sha256-ZtozbZ0D6Z0vUlz7FzBkuNf5/7JE1syZ0CuRi/75bas=", "owner": "holochain-open-dev", "repo": "profiles", - "rev": "a014dc21425ddaf244de3bff932982a44b37ce1f", + "rev": "6000dc6c04194429f2768517670366c411c4a03a", "type": "github" }, "original": { @@ -1907,11 +1913,11 @@ ] }, "locked": { - "lastModified": 1724898214, - "narHash": "sha256-4yMO9+Lsr3zqTf4clAGGag/bfNTmc/ITOXbJQcOEok4=", + "lastModified": 1725243956, + "narHash": "sha256-0A5ZP8uDCyBdYUzayZfy6JFdTefP79oZVAjyqA/yuSI=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "0bc2c784e3a6ce30a2ab1b9f47325ccbed13039f", + "rev": "a10c8092d5f82622be79ed4dd12289f72011f850", "type": "github" }, "original": { @@ -1951,11 +1957,11 @@ ] }, "locked": { - "lastModified": 1724898214, - "narHash": "sha256-4yMO9+Lsr3zqTf4clAGGag/bfNTmc/ITOXbJQcOEok4=", + "lastModified": 1725243956, + "narHash": "sha256-0A5ZP8uDCyBdYUzayZfy6JFdTefP79oZVAjyqA/yuSI=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "0bc2c784e3a6ce30a2ab1b9f47325ccbed13039f", + "rev": "a10c8092d5f82622be79ed4dd12289f72011f850", "type": "github" }, "original": { @@ -1974,11 +1980,11 @@ ] }, "locked": { - "lastModified": 1724898214, - "narHash": "sha256-4yMO9+Lsr3zqTf4clAGGag/bfNTmc/ITOXbJQcOEok4=", + "lastModified": 1725243956, + "narHash": "sha256-0A5ZP8uDCyBdYUzayZfy6JFdTefP79oZVAjyqA/yuSI=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "0bc2c784e3a6ce30a2ab1b9f47325ccbed13039f", + "rev": "a10c8092d5f82622be79ed4dd12289f72011f850", "type": "github" }, "original": { @@ -1996,11 +2002,11 @@ ] }, "locked": { - "lastModified": 1724898214, - "narHash": "sha256-4yMO9+Lsr3zqTf4clAGGag/bfNTmc/ITOXbJQcOEok4=", + "lastModified": 1725243956, + "narHash": "sha256-0A5ZP8uDCyBdYUzayZfy6JFdTefP79oZVAjyqA/yuSI=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "0bc2c784e3a6ce30a2ab1b9f47325ccbed13039f", + "rev": "a10c8092d5f82622be79ed4dd12289f72011f850", "type": "github" }, "original": { @@ -2020,11 +2026,11 @@ ] }, "locked": { - "lastModified": 1724898214, - "narHash": "sha256-4yMO9+Lsr3zqTf4clAGGag/bfNTmc/ITOXbJQcOEok4=", + "lastModified": 1725243956, + "narHash": "sha256-0A5ZP8uDCyBdYUzayZfy6JFdTefP79oZVAjyqA/yuSI=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "0bc2c784e3a6ce30a2ab1b9f47325ccbed13039f", + "rev": "a10c8092d5f82622be79ed4dd12289f72011f850", "type": "github" }, "original": { @@ -2043,11 +2049,11 @@ ] }, "locked": { - "lastModified": 1724898214, - "narHash": "sha256-4yMO9+Lsr3zqTf4clAGGag/bfNTmc/ITOXbJQcOEok4=", + "lastModified": 1725243956, + "narHash": "sha256-0A5ZP8uDCyBdYUzayZfy6JFdTefP79oZVAjyqA/yuSI=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "0bc2c784e3a6ce30a2ab1b9f47325ccbed13039f", + "rev": "a10c8092d5f82622be79ed4dd12289f72011f850", "type": "github" }, "original": { @@ -2143,7 +2149,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-ljZ2Aflookv/cjDs+fWcBnwD4CpWvXPxVJj+OAE21O8=", + "narHash": "sha256-Z+2oiCXwNne+yrFC/CPSC93ZeeoBWikLzb6cr+2hBAc=", "path": "./../service-repo", "type": "path" }, diff --git a/nix/fixtures/module-repo/flake.lock b/nix/fixtures/module-repo/flake.lock index d428ae8..c5e6548 100644 --- a/nix/fixtures/module-repo/flake.lock +++ b/nix/fixtures/module-repo/flake.lock @@ -155,7 +155,12 @@ "crane" ], "holonix": "holonix", - "nixpkgs": "nixpkgs_2", + "nixpkgs": [ + "hc-infra", + "holonix", + "nixpkgs" + ], + "pnpmnixpkgs": "pnpmnixpkgs", "rust-overlay": [ "hc-infra", "holonix", @@ -164,7 +169,7 @@ }, "locked": { "lastModified": 0, - "narHash": "sha256-OLS0zBIQAbOOdawCV5pu/j4LwRqJ2EFkVJ0Q93Y2l5E=", + "narHash": "sha256-r5Tpt72DkGoR9CEOKlj2Usqlp+RrQjlbcQP1c604fmc=", "path": "./../../..", "type": "path" }, @@ -447,7 +452,7 @@ "hc-scaffold": "hc-scaffold_2", "holochain": "holochain_2", "lair-keystore": "lair-keystore_2", - "nixpkgs": "nixpkgs_3", + "nixpkgs": "nixpkgs_2", "rust-overlay": "rust-overlay_2" }, "locked": { @@ -473,7 +478,7 @@ "hc-scaffold": "hc-scaffold_3", "holochain": "holochain_3", "lair-keystore": "lair-keystore_3", - "nixpkgs": "nixpkgs_4", + "nixpkgs": "nixpkgs_3", "rust-overlay": "rust-overlay_3" }, "locked": { @@ -499,7 +504,7 @@ "hc-scaffold": "hc-scaffold_4", "holochain": "holochain_4", "lair-keystore": "lair-keystore_4", - "nixpkgs": "nixpkgs_5", + "nixpkgs": "nixpkgs_4", "rust-overlay": "rust-overlay_4" }, "locked": { @@ -651,16 +656,16 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1725930920, - "narHash": "sha256-RVhD9hnlTT2nJzPHlAqrWqCkA7T6CYrP41IoVRkciZM=", + "lastModified": 1717179513, + "narHash": "sha256-vboIEwIQojofItm2xGCdZCzW96U85l9nDW3ifMuAIdM=", "owner": "nixos", "repo": "nixpkgs", - "rev": "44a71ff39c182edaf25a7ace5c9454e7cba2c658", + "rev": "63dacb46bf939521bdc93981b4cbb7ecb58427a0", "type": "github" }, "original": { "owner": "nixos", - "ref": "nixos-24.05", + "ref": "24.05", "repo": "nixpkgs", "type": "github" } @@ -697,18 +702,18 @@ "type": "github" } }, - "nixpkgs_5": { + "pnpmnixpkgs": { "locked": { - "lastModified": 1717179513, - "narHash": "sha256-vboIEwIQojofItm2xGCdZCzW96U85l9nDW3ifMuAIdM=", + "lastModified": 1726838390, + "narHash": "sha256-NmcVhGElxDbmEWzgXsyAjlRhUus/nEqPC5So7BOJLUM=", "owner": "nixos", "repo": "nixpkgs", - "rev": "63dacb46bf939521bdc93981b4cbb7ecb58427a0", + "rev": "944b2aea7f0a2d7c79f72468106bc5510cbf5101", "type": "github" }, "original": { "owner": "nixos", - "ref": "24.05", + "ref": "nixos-24.05", "repo": "nixpkgs", "type": "github" } diff --git a/nix/fixtures/service-repo/flake.lock b/nix/fixtures/service-repo/flake.lock index 1cdac68..6906ecb 100644 --- a/nix/fixtures/service-repo/flake.lock +++ b/nix/fixtures/service-repo/flake.lock @@ -1,19 +1,12 @@ { "nodes": { "crane": { - "inputs": { - "nixpkgs": [ - "hc-infra", - "holonix", - "nixpkgs" - ] - }, "locked": { - "lastModified": 1724537630, - "narHash": "sha256-gpqINM71zp3kw5XYwUXa84ZtPnCmLLnByuFoYesT1bY=", + "lastModified": 1725125250, + "narHash": "sha256-CB20rDD5eHikF6mMTTJdwPP1qvyoiyyw1RDUzwIaIF8=", "owner": "ipetkov", "repo": "crane", - "rev": "3e08f4b1fc9aaede5dd511d8f5f4ef27501e49b0", + "rev": "96fd12c7100e9e05fa1a0a5bd108525600ce282f", "type": "github" }, "original": { @@ -23,18 +16,12 @@ } }, "crane_2": { - "inputs": { - "nixpkgs": [ - "holonix", - "nixpkgs" - ] - }, "locked": { - "lastModified": 1724537630, - "narHash": "sha256-gpqINM71zp3kw5XYwUXa84ZtPnCmLLnByuFoYesT1bY=", + "lastModified": 1725125250, + "narHash": "sha256-CB20rDD5eHikF6mMTTJdwPP1qvyoiyyw1RDUzwIaIF8=", "owner": "ipetkov", "repo": "crane", - "rev": "3e08f4b1fc9aaede5dd511d8f5f4ef27501e49b0", + "rev": "96fd12c7100e9e05fa1a0a5bd108525600ce282f", "type": "github" }, "original": { @@ -44,20 +31,12 @@ } }, "crane_3": { - "inputs": { - "nixpkgs": [ - "module", - "hc-infra", - "holonix", - "nixpkgs" - ] - }, "locked": { - "lastModified": 1724537630, - "narHash": "sha256-gpqINM71zp3kw5XYwUXa84ZtPnCmLLnByuFoYesT1bY=", + "lastModified": 1725125250, + "narHash": "sha256-CB20rDD5eHikF6mMTTJdwPP1qvyoiyyw1RDUzwIaIF8=", "owner": "ipetkov", "repo": "crane", - "rev": "3e08f4b1fc9aaede5dd511d8f5f4ef27501e49b0", + "rev": "96fd12c7100e9e05fa1a0a5bd108525600ce282f", "type": "github" }, "original": { @@ -67,19 +46,12 @@ } }, "crane_4": { - "inputs": { - "nixpkgs": [ - "module", - "holonix", - "nixpkgs" - ] - }, "locked": { - "lastModified": 1724537630, - "narHash": "sha256-gpqINM71zp3kw5XYwUXa84ZtPnCmLLnByuFoYesT1bY=", + "lastModified": 1725125250, + "narHash": "sha256-CB20rDD5eHikF6mMTTJdwPP1qvyoiyyw1RDUzwIaIF8=", "owner": "ipetkov", "repo": "crane", - "rev": "3e08f4b1fc9aaede5dd511d8f5f4ef27501e49b0", + "rev": "96fd12c7100e9e05fa1a0a5bd108525600ce282f", "type": "github" }, "original": { @@ -185,11 +157,11 @@ "nixpkgs-lib": "nixpkgs-lib" }, "locked": { - "lastModified": 1722555600, - "narHash": "sha256-XOQkdLafnb/p9ij77byFQjDf5m5QYl9b2REiVClC+x4=", + "lastModified": 1725234343, + "narHash": "sha256-+ebgonl3NbiKD2UD0x4BszCZQ6sTfL4xioaM49o5B3Y=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "8471fe90ad337a8074e957b69ca4d0089218391d", + "rev": "567b938d64d4b4112ee253b9274472dc3a346eb6", "type": "github" }, "original": { @@ -203,11 +175,11 @@ "nixpkgs-lib": "nixpkgs-lib_2" }, "locked": { - "lastModified": 1722555600, - "narHash": "sha256-XOQkdLafnb/p9ij77byFQjDf5m5QYl9b2REiVClC+x4=", + "lastModified": 1725234343, + "narHash": "sha256-+ebgonl3NbiKD2UD0x4BszCZQ6sTfL4xioaM49o5B3Y=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "8471fe90ad337a8074e957b69ca4d0089218391d", + "rev": "567b938d64d4b4112ee253b9274472dc3a346eb6", "type": "github" }, "original": { @@ -221,11 +193,11 @@ "nixpkgs-lib": "nixpkgs-lib_3" }, "locked": { - "lastModified": 1722555600, - "narHash": "sha256-XOQkdLafnb/p9ij77byFQjDf5m5QYl9b2REiVClC+x4=", + "lastModified": 1725234343, + "narHash": "sha256-+ebgonl3NbiKD2UD0x4BszCZQ6sTfL4xioaM49o5B3Y=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "8471fe90ad337a8074e957b69ca4d0089218391d", + "rev": "567b938d64d4b4112ee253b9274472dc3a346eb6", "type": "github" }, "original": { @@ -239,11 +211,11 @@ "nixpkgs-lib": "nixpkgs-lib_4" }, "locked": { - "lastModified": 1722555600, - "narHash": "sha256-XOQkdLafnb/p9ij77byFQjDf5m5QYl9b2REiVClC+x4=", + "lastModified": 1725234343, + "narHash": "sha256-+ebgonl3NbiKD2UD0x4BszCZQ6sTfL4xioaM49o5B3Y=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "8471fe90ad337a8074e957b69ca4d0089218391d", + "rev": "567b938d64d4b4112ee253b9274472dc3a346eb6", "type": "github" }, "original": { @@ -337,6 +309,7 @@ "holonix", "nixpkgs" ], + "pnpmnixpkgs": "pnpmnixpkgs", "rust-overlay": [ "hc-infra", "holonix", @@ -345,7 +318,7 @@ }, "locked": { "lastModified": 0, - "narHash": "sha256-4zKDty4KLm/wIVEK+Adhx97uQJuweDrQ9sXe/Wd/9r8=", + "narHash": "sha256-1ZH7ZjjEcQ8IGWNcY/FnExFhP7zruMAbzgxJ/cI/H80=", "path": "./../../..", "type": "path" }, @@ -369,6 +342,7 @@ "holonix", "nixpkgs" ], + "pnpmnixpkgs": "pnpmnixpkgs_2", "rust-overlay": [ "module", "hc-infra", @@ -378,7 +352,7 @@ }, "locked": { "lastModified": 0, - "narHash": "sha256-M5JSSHYfat7zQbqhnmfYS9zIo4OwruRDpSZ5Z17mWhc=", + "narHash": "sha256-r5Tpt72DkGoR9CEOKlj2Usqlp+RrQjlbcQP1c604fmc=", "path": "./../../..", "type": "path" }, @@ -413,11 +387,11 @@ ] }, "locked": { - "lastModified": 1725274427, - "narHash": "sha256-JSPsz9hN9TrlAd7Pg7u7tTz2uFLyHR8JCvC0gXGwBVo=", + "lastModified": 1725282556, + "narHash": "sha256-B0DFFCS3UWDpHutqJpQz/IUmnTjITnJbVEZTKD321pw=", "owner": "holochain-open-dev", "repo": "infrastructure", - "rev": "4e152d1d93cc1c41985bd7dc79088a47360d6a09", + "rev": "83ee6861e965d15211145484c44ce22bb12fd071", "type": "github" }, "original": { @@ -449,11 +423,11 @@ ] }, "locked": { - "lastModified": 1725274427, - "narHash": "sha256-JSPsz9hN9TrlAd7Pg7u7tTz2uFLyHR8JCvC0gXGwBVo=", + "lastModified": 1725282556, + "narHash": "sha256-B0DFFCS3UWDpHutqJpQz/IUmnTjITnJbVEZTKD321pw=", "owner": "holochain-open-dev", "repo": "infrastructure", - "rev": "4e152d1d93cc1c41985bd7dc79088a47360d6a09", + "rev": "83ee6861e965d15211145484c44ce22bb12fd071", "type": "github" }, "original": { @@ -882,11 +856,11 @@ "rust-overlay": "rust-overlay" }, "locked": { - "lastModified": 1724935136, - "narHash": "sha256-TAxGCtBJXv/B6gdBD/TNisuRAs7tC9ati89DZr73ddo=", + "lastModified": 1725293701, + "narHash": "sha256-dwb1tzr7kO8u5LllGqJiIaKe2btsKaMHX1gecgtwruM=", "owner": "holochain", "repo": "holonix", - "rev": "f1a543d4188adbe6ff1cd9229120d5fe3cb96103", + "rev": "fb9e3c067052cf628d1b22a1802f016eaf1d3e3e", "type": "github" }, "original": { @@ -908,11 +882,11 @@ "rust-overlay": "rust-overlay_2" }, "locked": { - "lastModified": 1724935136, - "narHash": "sha256-TAxGCtBJXv/B6gdBD/TNisuRAs7tC9ati89DZr73ddo=", + "lastModified": 1725293701, + "narHash": "sha256-dwb1tzr7kO8u5LllGqJiIaKe2btsKaMHX1gecgtwruM=", "owner": "holochain", "repo": "holonix", - "rev": "f1a543d4188adbe6ff1cd9229120d5fe3cb96103", + "rev": "fb9e3c067052cf628d1b22a1802f016eaf1d3e3e", "type": "github" }, "original": { @@ -934,11 +908,11 @@ "rust-overlay": "rust-overlay_3" }, "locked": { - "lastModified": 1724935136, - "narHash": "sha256-TAxGCtBJXv/B6gdBD/TNisuRAs7tC9ati89DZr73ddo=", + "lastModified": 1725293701, + "narHash": "sha256-dwb1tzr7kO8u5LllGqJiIaKe2btsKaMHX1gecgtwruM=", "owner": "holochain", "repo": "holonix", - "rev": "f1a543d4188adbe6ff1cd9229120d5fe3cb96103", + "rev": "fb9e3c067052cf628d1b22a1802f016eaf1d3e3e", "type": "github" }, "original": { @@ -960,11 +934,11 @@ "rust-overlay": "rust-overlay_4" }, "locked": { - "lastModified": 1724935136, - "narHash": "sha256-TAxGCtBJXv/B6gdBD/TNisuRAs7tC9ati89DZr73ddo=", + "lastModified": 1725293701, + "narHash": "sha256-dwb1tzr7kO8u5LllGqJiIaKe2btsKaMHX1gecgtwruM=", "owner": "holochain", "repo": "holonix", - "rev": "f1a543d4188adbe6ff1cd9229120d5fe3cb96103", + "rev": "fb9e3c067052cf628d1b22a1802f016eaf1d3e3e", "type": "github" }, "original": { @@ -1227,7 +1201,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-lb+DYtxxTjgR1n2M1VP7XEIzvXC0d5YgWc+5djN4jbI=", + "narHash": "sha256-tNwS14nEIYN9C20NKsxgFlcePQx9BH9zYsqRJTa2e7E=", "path": "./../module-repo", "type": "path" }, @@ -1254,50 +1228,50 @@ }, "nixpkgs-lib": { "locked": { - "lastModified": 1722555339, - "narHash": "sha256-uFf2QeW7eAHlYXuDktm9c25OxOyCoUOQmh5SZ9amE5Q=", + "lastModified": 1725233747, + "narHash": "sha256-Ss8QWLXdr2JCBPcYChJhz4xJm+h/xjl4G0c0XlP6a74=", "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz" + "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" }, "original": { "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz" + "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" } }, "nixpkgs-lib_2": { "locked": { - "lastModified": 1722555339, - "narHash": "sha256-uFf2QeW7eAHlYXuDktm9c25OxOyCoUOQmh5SZ9amE5Q=", + "lastModified": 1725233747, + "narHash": "sha256-Ss8QWLXdr2JCBPcYChJhz4xJm+h/xjl4G0c0XlP6a74=", "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz" + "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" }, "original": { "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz" + "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" } }, "nixpkgs-lib_3": { "locked": { - "lastModified": 1722555339, - "narHash": "sha256-uFf2QeW7eAHlYXuDktm9c25OxOyCoUOQmh5SZ9amE5Q=", + "lastModified": 1725233747, + "narHash": "sha256-Ss8QWLXdr2JCBPcYChJhz4xJm+h/xjl4G0c0XlP6a74=", "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz" + "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" }, "original": { "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz" + "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" } }, "nixpkgs-lib_4": { "locked": { - "lastModified": 1722555339, - "narHash": "sha256-uFf2QeW7eAHlYXuDktm9c25OxOyCoUOQmh5SZ9amE5Q=", + "lastModified": 1725233747, + "narHash": "sha256-Ss8QWLXdr2JCBPcYChJhz4xJm+h/xjl4G0c0XlP6a74=", "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz" + "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" }, "original": { "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz" + "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" } }, "nixpkgs-lib_5": { @@ -1460,6 +1434,38 @@ "type": "github" } }, + "pnpmnixpkgs": { + "locked": { + "lastModified": 1726838390, + "narHash": "sha256-NmcVhGElxDbmEWzgXsyAjlRhUus/nEqPC5So7BOJLUM=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "944b2aea7f0a2d7c79f72468106bc5510cbf5101", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-24.05", + "repo": "nixpkgs", + "type": "github" + } + }, + "pnpmnixpkgs_2": { + "locked": { + "lastModified": 1726838390, + "narHash": "sha256-NmcVhGElxDbmEWzgXsyAjlRhUus/nEqPC5So7BOJLUM=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "944b2aea7f0a2d7c79f72468106bc5510cbf5101", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-24.05", + "repo": "nixpkgs", + "type": "github" + } + }, "profiles": { "inputs": { "hc-infra": "hc-infra_3", @@ -1472,11 +1478,11 @@ ] }, "locked": { - "lastModified": 1725281282, - "narHash": "sha256-H1iovFsGcg1Ytu6lOmbnw6fy4uiUOfNWRMdYyS1SxCs=", + "lastModified": 1725282695, + "narHash": "sha256-ZtozbZ0D6Z0vUlz7FzBkuNf5/7JE1syZ0CuRi/75bas=", "owner": "holochain-open-dev", "repo": "profiles", - "rev": "a014dc21425ddaf244de3bff932982a44b37ce1f", + "rev": "6000dc6c04194429f2768517670366c411c4a03a", "type": "github" }, "original": { @@ -1497,11 +1503,11 @@ ] }, "locked": { - "lastModified": 1725281282, - "narHash": "sha256-H1iovFsGcg1Ytu6lOmbnw6fy4uiUOfNWRMdYyS1SxCs=", + "lastModified": 1725282695, + "narHash": "sha256-ZtozbZ0D6Z0vUlz7FzBkuNf5/7JE1syZ0CuRi/75bas=", "owner": "holochain-open-dev", "repo": "profiles", - "rev": "a014dc21425ddaf244de3bff932982a44b37ce1f", + "rev": "6000dc6c04194429f2768517670366c411c4a03a", "type": "github" }, "original": { @@ -1532,11 +1538,11 @@ ] }, "locked": { - "lastModified": 1724898214, - "narHash": "sha256-4yMO9+Lsr3zqTf4clAGGag/bfNTmc/ITOXbJQcOEok4=", + "lastModified": 1725243956, + "narHash": "sha256-0A5ZP8uDCyBdYUzayZfy6JFdTefP79oZVAjyqA/yuSI=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "0bc2c784e3a6ce30a2ab1b9f47325ccbed13039f", + "rev": "a10c8092d5f82622be79ed4dd12289f72011f850", "type": "github" }, "original": { @@ -1553,11 +1559,11 @@ ] }, "locked": { - "lastModified": 1724898214, - "narHash": "sha256-4yMO9+Lsr3zqTf4clAGGag/bfNTmc/ITOXbJQcOEok4=", + "lastModified": 1725243956, + "narHash": "sha256-0A5ZP8uDCyBdYUzayZfy6JFdTefP79oZVAjyqA/yuSI=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "0bc2c784e3a6ce30a2ab1b9f47325ccbed13039f", + "rev": "a10c8092d5f82622be79ed4dd12289f72011f850", "type": "github" }, "original": { @@ -1576,11 +1582,11 @@ ] }, "locked": { - "lastModified": 1724898214, - "narHash": "sha256-4yMO9+Lsr3zqTf4clAGGag/bfNTmc/ITOXbJQcOEok4=", + "lastModified": 1725243956, + "narHash": "sha256-0A5ZP8uDCyBdYUzayZfy6JFdTefP79oZVAjyqA/yuSI=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "0bc2c784e3a6ce30a2ab1b9f47325ccbed13039f", + "rev": "a10c8092d5f82622be79ed4dd12289f72011f850", "type": "github" }, "original": { @@ -1598,11 +1604,11 @@ ] }, "locked": { - "lastModified": 1724898214, - "narHash": "sha256-4yMO9+Lsr3zqTf4clAGGag/bfNTmc/ITOXbJQcOEok4=", + "lastModified": 1725243956, + "narHash": "sha256-0A5ZP8uDCyBdYUzayZfy6JFdTefP79oZVAjyqA/yuSI=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "0bc2c784e3a6ce30a2ab1b9f47325ccbed13039f", + "rev": "a10c8092d5f82622be79ed4dd12289f72011f850", "type": "github" }, "original": { diff --git a/nix/happ.nix b/nix/happ.nix index 02a9c78..366b889 100644 --- a/nix/happ.nix +++ b/nix/happ.nix @@ -1,6 +1,6 @@ # Build a hApp -{ happManifest, holochain, writeText, json2yaml, callPackage, runCommandNoCC -, runCommandLocal, dnas ? { } }: +{ happManifest, holochain, writeText, json2yaml, callPackage, runCommandLocal +, dnas ? { } }: let dnaSrcs = builtins.attrValues dnas; @@ -19,30 +19,8 @@ let happManifestYaml = runCommandLocal "json-to-yaml" { } " ${json2yaml}/bin/json2yaml ${happManifestJson} $out\n"; - release = runCommandLocal manifest.name { - srcs = builtins.map (dna: dna.meta.release) dnaSrcs; - meta = { holochainPackageType = "happ"; }; - } '' - mkdir workdir - - cp ${happManifestYaml} workdir/happ.yaml - - ${ - builtins.toString (builtins.map (role: '' - cp ${dnas.${role.name}.meta.release} ./workdir/${role.name}.dna - '') manifest'.roles) - } - - ${holochain}/bin/hc app pack workdir - mv workdir/${manifest.name}.happ $out - ''; - - debug = runCommandLocal manifest.name { - srcs = dnaSrcs; - meta = { - inherit release; - holochainPackageType = "happ"; - }; + debug = runCommandLocal "${manifest.name}-debug" { + srcs = builtins.map (dna: dna.meta.debug) dnaSrcs; } '' mkdir workdir @@ -50,11 +28,28 @@ let ${ builtins.toString (builtins.map (role: '' - cp ${dnas.${role.name}} ./workdir/${role.name}.dna + cp ${dnas.${role.name}.meta.debug} ./workdir/${role.name}.dna '') manifest.roles) } ${holochain}/bin/hc app pack workdir mv workdir/${manifest.name}.happ $out ''; -in debug + +in runCommandLocal manifest.name { + meta = { inherit debug; }; + srcs = dnaSrcs; +} '' + mkdir workdir + + cp ${happManifestYaml} workdir/happ.yaml + + ${ + builtins.toString (builtins.map (role: '' + cp ${dnas.${role.name}} ./workdir/${role.name}.dna + '') manifest'.roles) + } + + ${holochain}/bin/hc app pack workdir + mv workdir/${manifest.name}.happ $out +'' diff --git a/nix/zome.nix b/nix/zome.nix index 5f41529..2fd9ab8 100644 --- a/nix/zome.nix +++ b/nix/zome.nix @@ -1,18 +1,6 @@ -{ lib - , workspacePath - , referenceZomeCargoArtifacts - , cargoArtifacts - , pkgs - , runCommandLocal - , runCommandNoCC - , binaryen - , deterministicCraneLib - , craneLib - , crateCargoToml - , nonWasmCrates - , matchingZomeHash ? null - , zome-wasm-hash -}: +{ lib, workspacePath, cargoArtifacts, runCommandLocal, binaryen +, deterministicCraneLib, craneLib, crateCargoToml, matchingZomeHash ? null +, zome-wasm-hash }: let cargoToml = builtins.fromTOML (builtins.readFile crateCargoToml); @@ -20,6 +8,29 @@ let src = craneLib.cleanCargoSource (craneLib.path workspacePath); + listCratesPathsFromWorkspace = src: + let + + allFiles = lib.filesystem.listFilesRecursive src; + allCargoTomlsPaths = + builtins.filter (path: lib.strings.hasSuffix "/Cargo.toml" path) + allFiles; + allCratesPaths = + builtins.map (path: builtins.dirOf path) allCargoTomlsPaths; + in allCratesPaths; + + listCratesNamesFromWorskspace = src: + let + allCratesPaths = listCratesPathsFromWorkspace src; + cratesCargoToml = builtins.map + (path: builtins.fromTOML (builtins.readFile (path + "/Cargo.toml"))) + allCratesPaths; + cratesWithoutWorkspace = + builtins.filter (toml: builtins.hasAttr "package" toml) cratesCargoToml; + cratesNames = + builtins.map (toml: toml.package.name) cratesWithoutWorkspace; + in cratesNames; + listBinaryCratesFromWorkspace = src: let isCrateZome = path: @@ -32,12 +43,7 @@ let (builtins.toString (path + "/src/bin"))); in hasSrc && !hasMain && !hasBinDir; - allFiles = lib.filesystem.listFilesRecursive src; - allCargoTomlsPaths = - builtins.filter (path: lib.strings.hasSuffix "/Cargo.toml" path) - allFiles; - allCratesPaths = - builtins.map (path: builtins.dirOf path) allCargoTomlsPaths; + allCratesPaths = listCratesPathsFromWorkspace src; binaryCratesPaths = builtins.filter (cratePath: !(isCrateZome cratePath)) allCratesPaths; binaryCratesCargoToml = builtins.map @@ -54,11 +60,18 @@ let excludedCrates = builtins.toString (builtins.map (c: " --exclude ${c}") nonWasmCrates); + allCratesNames = listCratesNamesFromWorskspace src; + + workspaceName = if builtins.length allCratesNames > 0 then + builtins.elemAt allCratesNames 0 + else + ""; + commonArgs = { inherit src; doCheck = false; CARGO_BUILD_TARGET = "wasm32-unknown-unknown"; - pname = "workspace"; + pname = "${workspaceName}-workspace"; version = cargoToml.package.version; cargoBuildCommand = "cargo build --release --locked --workspace ${excludedCrates}"; @@ -80,13 +93,7 @@ let (buildPackageCommonArgs // { cargoArtifacts = zomeCargoArtifacts; }); deterministicWasm = let - zca = referenceZomeCargoArtifacts { - system = pkgs.system; - craneLib = deterministicCraneLib; - }; - cargoArtifacts = - (deterministicCraneLib.callPackage ./buildDepsOnlyWithArtifacts.nix { }) - (commonArgs // { cargoArtifacts = zca; }); + cargoArtifacts = deterministicCraneLib.buildDepsOnly (commonArgs // { }); wasm = deterministicCraneLib.buildPackage (buildPackageCommonArgs // { inherit cargoArtifacts; }); @@ -94,34 +101,39 @@ let meta = { holochainPackageType = "zome"; }; } " cp ${wasm}/lib/${crate}.wasm $out \n"; - release = runCommandLocal crate { - meta = { holochainPackageType = "zome"; }; - buildInputs = [ binaryen ]; - } '' - wasm-opt --strip-debug -Oz -o $out ${deterministicWasm} + debug = runCommandLocal "${crate}-debug" { } '' + cp ${wasm}/lib/${crate}.wasm $out ''; - guardedRelease = if matchingZomeHash != null then runCommandLocal "check-zome-${crate}-hash" { - srcs = [ release matchingZomeHash.meta.release ]; - buildInputs = [ zome-wasm-hash ]; - } '' - ORIGINAL_HASH=$(zome-wasm-hash ${matchingZomeHash.meta.release}) - NEW_HASH=$(zome-wasm-hash ${release}) - - if [[ "$ORIGINAL_HASH" != "$NEW_HASH" ]]; then - echo "The hash for the new ${crate} zome does not match the hash of the original zome" - exit 1 - fi - - cp ${release} $out - '' else release; - - debug = runCommandLocal "${crate}-debug" { - meta = { - holochainPackageType = "zome"; - release = guardedRelease; - }; - } '' - cp ${wasm}/lib/${crate}.wasm $out + release = runCommandLocal crate { buildInputs = [ binaryen ]; } '' + wasm-opt --strip-debug -Oz -o $out ${deterministicWasm} ''; -in debug + + guardedRelease = if matchingZomeHash != null then + runCommandLocal "check-zome-${crate}-hash" { + srcs = [ release matchingZomeHash.meta.release ]; + buildInputs = [ zome-wasm-hash ]; + } '' + ORIGINAL_HASH=$(zome-wasm-hash ${matchingZomeHash.meta.release}) + NEW_HASH=$(zome-wasm-hash ${release}) + + if [[ "$ORIGINAL_HASH" != "$NEW_HASH" ]]; then + echo "The hash for the new ${crate} zome does not match the hash of the original zome" + exit 1 + fi + + cp ${release} $out + '' + else + release; + +in runCommandLocal crate { + meta = { inherit debug; }; + outputs = [ "out" "hash" ]; + buildInputs = [ zome-wasm-hash ]; +} '' + + cp ${guardedRelease} $out + zome-wasm-hash $out > $hash + +''