diff options
| author | LLLL Colonq <llll@colonq> | 2025-06-08 04:02:18 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-06-08 04:02:18 -0400 |
| commit | 4ccaa3c849070379f52e6b306811ca33305d0694 (patch) | |
| tree | b5ef0d3db5b642fdc504752451b5fe9c388b4449 /flake.nix | |
| parent | 71b13aa5dd17ab2548dfb2c579b93921a4b449fe (diff) | |
Add wasm.buildAtUrl
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 { |
