From 4bb851db898c44afe1fd789da060c4e85389d9b3 Mon Sep 17 00:00:00 2001 From: traxys Date: Sat, 29 Jul 2023 12:07:45 +0200 Subject: [PATCH] Bundle bootstrap in derivation --- flake.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/flake.nix b/flake.nix index 948ffba..b26323e 100644 --- a/flake.nix +++ b/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 '';