diff options
| author | LLLL Colonq <llll@colonq> | 2025-12-29 17:00:02 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-12-29 17:00:14 -0500 |
| commit | eaf5f6d02d688856481f8267dff51586f0b715dc (patch) | |
| tree | 448e135dd026152823708b9ace08b946b6c122c8 /flake.nix | |
| parent | ff3317bee0584b89758bbda6712396d35ba82153 (diff) | |
Update
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -114,7 +114,7 @@ }; wasm = rec { - buildAtUrl = path: nm: url: + buildAtUrlInDir = path: nm: url: dir: let src = lib.cleanSourceWith { src = path; @@ -154,7 +154,15 @@ inherit cargoExtraArgs; doCheck = false; }); + preBuild = '' + pushd ${dir} + ''; + postBuild = '' + popd + mv ${dir}/dist . + ''; }); + buildAtUrl = path: nm: url: buildAtUrlInDir path nm url "."; build = path: nm: buildAtUrl path nm ""; }; |
