1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 00:54:11 +00:00

twitterBootstrap: v2 -> v3

cc @Profpatsch

v2 no longer compiles and is ancient
This commit is contained in:
Jörg Thalheim 2018-08-28 12:48:57 +01:00
parent c4e8f4b442
commit 1b09d06dcb
3 changed files with 16 additions and 47 deletions

View file

@ -1,31 +1,26 @@
{ stdenv, fetchFromGitHub, lessc, closurecompiler }:
{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
name = "twitter-bootstrap-${version}";
version = "2.3.2";
name = "bootstrap-${version}";
version = "3.3.7";
src = fetchFromGitHub {
owner = "twitter";
repo = "bootstrap";
rev = "v${version}";
sha256 = "0b4dsk9sqlkwwfgqqjlgi6p05qz2jssmmz4adm83f31sx70lgh4g";
src = fetchurl {
url = "https://github.com/twbs/bootstrap/releases/download/v${version}/bootstrap-${version}-dist.zip";
sha256 = "0yqvg72knl7a0rlszbpk7xf7f0cs3aqf9xbl42ff41yh5pzsi67l";
};
buildInputs = [ lessc closurecompiler ];
phases = [ "installPhase" ];
buildInputs = [ unzip ];
dontBuild = true;
installPhase = ''
mkdir -p $out/css $out/js $out/img
cp $src/img/* $out/img/
closure-compiler --js $src/js/*.js > $out/js/bootstrap.js
lessc $src/less/bootstrap.less -O2 -x > $out/css/bootstrap.css
mkdir $out
cp -r * $out/
'';
meta = {
description = "Front-end framework for faster and easier web development";
homepage = http://getbootstrap.com/;
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.mit;
};
}

View file

@ -1,26 +0,0 @@
{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
name = "bootstrap-${version}";
version = "3.3.7";
src = fetchurl {
url = "https://github.com/twbs/bootstrap/releases/download/v${version}/bootstrap-${version}-dist.zip";
sha256 = "0yqvg72knl7a0rlszbpk7xf7f0cs3aqf9xbl42ff41yh5pzsi67l";
};
buildInputs = [ unzip ];
dontBuild = true;
installPhase = ''
mkdir $out
cp -r * $out/
'';
meta = {
description = "Front-end framework for faster and easier web development";
homepage = http://getbootstrap.com/;
license = stdenv.lib.licenses.mit;
};
}

View file

@ -5656,8 +5656,8 @@ with pkgs;
libX11 = xorg.libX11;
};
twitterBootstrap = callPackage ../development/web/twitter-bootstrap {};
twitterBootstrap3 = callPackage ../development/web/twitter-bootstrap/v3.nix {};
twitterBootstrap3 = callPackage ../development/web/twitter-bootstrap {};
twitterBootstrap = twitterBootstrap3;
txt2man = callPackage ../tools/misc/txt2man { };