diff --git a/pkgs/development/web/twitter-bootstrap/default.nix b/pkgs/development/web/twitter-bootstrap/default.nix index 7284bc95e54e..aad89980645d 100644 --- a/pkgs/development/web/twitter-bootstrap/default.nix +++ b/pkgs/development/web/twitter-bootstrap/default.nix @@ -1,20 +1,28 @@ -{ lib, stdenv, fetchurl, unzip }: +{ lib +, stdenv +, fetchurl +, unzip +}: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "bootstrap"; - version = "5.3.0"; + version = "5.3.1"; src = fetchurl { - url = "https://github.com/twbs/bootstrap/releases/download/v${version}/${pname}-${version}-dist.zip"; - sha256 = "sha256-RUN0HbrDlUt7fMDjSHaIoTyOchSmfsMQZyATZmz2zY0="; + url = "https://github.com/twbs/bootstrap/releases/download/v${finalAttrs.version}/bootstrap-${finalAttrs.version}-dist.zip"; + hash = "sha256-SfxkgJujf07f2vq0ViDhjGgRDCeg32L0RKDHHTWBp6Q="; }; nativeBuildInputs = [ unzip ]; dontBuild = true; installPhase = '' + runHook preInstall + mkdir $out cp -r * $out/ + + runHook postInstall ''; meta = { @@ -22,5 +30,4 @@ stdenv.mkDerivation rec { homepage = "https://getbootstrap.com/"; license = lib.licenses.mit; }; - -} +})