Bundle bootstrap in derivation
This commit is contained in:
parent
5d84dacc26
commit
4bb851db89
1 changed files with 17 additions and 0 deletions
17
flake.nix
17
flake.nix
|
|
@ -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
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue