diff options
author | Rickard Nilsson <rickynils@gmail.com> | 2013-07-01 16:14:52 +0200 |
---|---|---|
committer | Rickard Nilsson <rickynils@gmail.com> | 2013-07-01 16:14:52 +0200 |
commit | 070ddf83678df43e879ecfb66cc8d3ea30a26876 (patch) | |
tree | dae9e09fde06ee19fa16e386e8b0e385642d17b7 /pkgs/development/web | |
parent | 00df29c471d12b625f533e0adfafb17ea72432cc (diff) | |
download | nixlib-070ddf83678df43e879ecfb66cc8d3ea30a26876.tar nixlib-070ddf83678df43e879ecfb66cc8d3ea30a26876.tar.gz nixlib-070ddf83678df43e879ecfb66cc8d3ea30a26876.tar.bz2 nixlib-070ddf83678df43e879ecfb66cc8d3ea30a26876.tar.lz nixlib-070ddf83678df43e879ecfb66cc8d3ea30a26876.tar.xz nixlib-070ddf83678df43e879ecfb66cc8d3ea30a26876.tar.zst nixlib-070ddf83678df43e879ecfb66cc8d3ea30a26876.zip |
New package: Twitter Bootstrap 2.3.2, a front-end framework for web development.
Diffstat (limited to 'pkgs/development/web')
-rw-r--r-- | pkgs/development/web/twitter-bootstrap/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/web/twitter-bootstrap/default.nix b/pkgs/development/web/twitter-bootstrap/default.nix new file mode 100644 index 000000000000..9df7e3126d55 --- /dev/null +++ b/pkgs/development/web/twitter-bootstrap/default.nix @@ -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; + }; +} |