mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
New package: Twitter Bootstrap 2.3.2, a front-end framework for web development.
This commit is contained in:
parent
00df29c471
commit
070ddf8367
2 changed files with 32 additions and 0 deletions
30
pkgs/development/web/twitter-bootstrap/default.nix
Normal file
30
pkgs/development/web/twitter-bootstrap/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{ stdenv, fetchgit, lessc, closurecompiler }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "twitter-bootstrap-${version}";
|
||||||
|
version = "2.3.2";
|
||||||
|
|
||||||
|
src = fetchgit {
|
||||||
|
url = https://github.com/twitter/bootstrap.git;
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
sha256 = "093z4yxqhrr30vna67ksxz3bq146q2xr05hinh78pg2ls88k77la";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ lessc closurecompiler ];
|
||||||
|
|
||||||
|
phases = [ "installPhase" ];
|
||||||
|
|
||||||
|
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
|
||||||
|
'';
|
||||||
|
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -1753,6 +1753,8 @@ let
|
||||||
|
|
||||||
ttf2pt1 = callPackage ../tools/misc/ttf2pt1 { };
|
ttf2pt1 = callPackage ../tools/misc/ttf2pt1 { };
|
||||||
|
|
||||||
|
twitterBootstrap = callPackage ../development/web/twitter-bootstrap {};
|
||||||
|
|
||||||
txt2man = callPackage ../tools/misc/txt2man { };
|
txt2man = callPackage ../tools/misc/txt2man { };
|
||||||
|
|
||||||
ucl = callPackage ../development/libraries/ucl { };
|
ucl = callPackage ../development/libraries/ucl { };
|
||||||
|
|
Loading…
Reference in a new issue