summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-06-08 04:02:18 -0400
committerLLLL Colonq <llll@colonq>2025-06-08 04:02:18 -0400
commit4ccaa3c849070379f52e6b306811ca33305d0694 (patch)
treeb5ef0d3db5b642fdc504752451b5fe9c388b4449 /flake.nix
parent71b13aa5dd17ab2548dfb2c579b93921a4b449fe (diff)
Add wasm.buildAtUrl
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index e1f4ba5..850caa0 100644
--- a/flake.nix
+++ b/flake.nix
@@ -89,7 +89,7 @@
};
wasm = rec {
- build = path: nm:
+ buildAtUrl = path: nm: url:
let
src = lib.cleanSourceWith {
src = path;
@@ -124,11 +124,13 @@
craneLib.buildTrunkPackage (commonArgs // rec {
pname = nm;
cargoExtraArgs = "-p ${nm}";
+ trunkExtraBuildArgs = "--public-url ${url}";
cargoArtifacts = craneLib.buildDepsOnly (commonArgs // {
inherit cargoExtraArgs;
doCheck = false;
});
});
+ build = path: nm: buildAtUrl path nm "";
};
windows = rec {