summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-12-29 17:00:02 -0500
committerLLLL Colonq <llll@colonq>2025-12-29 17:00:14 -0500
commiteaf5f6d02d688856481f8267dff51586f0b715dc (patch)
tree448e135dd026152823708b9ace08b946b6c122c8
parentff3317bee0584b89758bbda6712396d35ba82153 (diff)
Update
-rw-r--r--flake.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 9b36e30..52c09e2 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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 "";
};