Bundle bootstrap in derivation

This commit is contained in:
traxys 2023-07-29 12:07:45 +02:00
parent 5d84dacc26
commit 4bb851db89

View file

@ -61,6 +61,21 @@
wasm-bindgen-cli,
apiServerBase ? "http://localhost:8085",
frontendRoot ? "http://localhost:8080",
fetchzip,
bootstrap ? let
version = "5.3.1";
in
fetchzip {
url = "https://github.com/twbs/bootstrap/releases/download/v${version}/bootstrap-${version}-dist.zip";
hash = "sha256-BKtQB7IaslmmW6cLF4m/uUJQaBDndRf7tJ9gjItKVI4=";
},
bootstrapIcons ? let
version = "1.10.5";
in
fetchzip {
url = "https://github.com/twbs/icons/releases/download/v${version}/bootstrap-icons-${version}.zip";
hash = "sha256-o+owSIRMIXOH/GvQlVNlnCv/hcWD6kmoXNwm7F1Dmxs=";
},
}: let
rustPlatformWasm = makeRustPlatform {
rustc = rust;
@ -101,6 +116,8 @@
runHook preInstall
cp -R dist $out
ln -s ${bootstrap} $out/bootstrap
ln -s ${bootstrapIcons} $out/bootstrap-icons
runHook postInstall
'';