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