jquery: new package
jQuery is a JavaScript library designed to simplify the client-side scripting of HTML. I'm adding version 1.x instead of 2.x because 1.x supports IE 6, 7, 8 browsers and both versions are API compatible. http://jquery.com/
This commit is contained in:
parent
f8c7e340a4
commit
af26d5e25b
36
pkgs/development/libraries/javascript/jquery/default.nix
Normal file
36
pkgs/development/libraries/javascript/jquery/default.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ stdenv, fetchurl, compressed ? true }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "jquery-1.11.1";
|
||||
|
||||
src = if compressed then
|
||||
fetchurl {
|
||||
url = "http://code.jquery.com/${name}.min.js";
|
||||
sha256 = "0hgly37jhg0n5cqlx3ylmwcxkxmbkvv07f9z9pm94jyxq7gcc2sl";
|
||||
}
|
||||
else
|
||||
fetchurl {
|
||||
url = "http://code.jquery.com/${name}.js";
|
||||
sha256 = "1g7nhy8dwzzai7h7m800fsig4gzw34kjxxbpqdac2y8ch9586a9h";
|
||||
};
|
||||
|
||||
unpackPhase = "true";
|
||||
|
||||
installPhase =
|
||||
''
|
||||
mkdir -p "$out/js"
|
||||
cp -v "$src" "$out/js/jquery.js"
|
||||
${optionalString compressed ''
|
||||
(cd "$out/js" && ln -s jquery.js jquery.min.js)
|
||||
''}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "JavaScript library designed to simplify the client-side scripting of HTML";
|
||||
homepage = http://jquery.com/;
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -6695,6 +6695,8 @@ let
|
||||
|
||||
### DEVELOPMENT / LIBRARIES / JAVASCRIPT
|
||||
|
||||
jquery = callPackage ../development/libraries/javascript/jquery { };
|
||||
|
||||
jquery-ui = callPackage ../development/libraries/javascript/jquery-ui { };
|
||||
|
||||
yuicompressor = callPackage ../development/tools/yuicompressor { };
|
||||
|
Loading…
Reference in New Issue
Block a user