1{
2 lib,
3 stdenv,
4 fetchurl,
5 unzip,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "bootstrap";
10 version = "5.3.7";
11
12 src = fetchurl {
13 url = "https://github.com/twbs/bootstrap/releases/download/v${finalAttrs.version}/bootstrap-${finalAttrs.version}-dist.zip";
14 hash = "sha256-nuEoO1JVD4UE0VZZTxddacpVp79o771fpi3ZHLJ/qGs=";
15 };
16
17 nativeBuildInputs = [ unzip ];
18
19 dontBuild = true;
20 installPhase = ''
21 runHook preInstall
22
23 mkdir $out
24 cp -r * $out/
25
26 runHook postInstall
27 '';
28
29 meta = {
30 description = "Front-end framework for faster and easier web development";
31 homepage = "https://getbootstrap.com/";
32 license = lib.licenses.mit;
33 };
34})