2011-01-09 15:43:53 +00:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-04-26 08:14:07 +00:00
|
|
|
name = "jquery-ui-1.10.2";
|
2011-01-09 15:43:53 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://jqueryui.com/download/${name}.custom.zip";
|
2013-04-26 08:14:07 +00:00
|
|
|
sha256 = "0r1fmqpym7bjqhjay9br4h3izky781bsda7v7552yjwkgiv391hl";
|
2011-01-09 15:43:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir -p $out
|
|
|
|
cp -prvd css js $out/
|
|
|
|
|
|
|
|
# For convenience, provide symlinks "jquery.min.js" etc. (i.e.,
|
|
|
|
# without the version number).
|
|
|
|
ln -s $out/js/jquery-ui-*.custom.min.js $out/js/jquery-ui.min.js
|
|
|
|
ln -s $out/js/jquery-1.*.min.js $out/js/jquery.min.js
|
|
|
|
ln -s $out/css/smoothness/jquery-ui-*.custom.css $out/css/smoothness/jquery-ui.css
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://jqueryui.com/;
|
|
|
|
description = "A library of JavaScript widgets and effects";
|
2011-02-24 16:20:47 +00:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2011-01-09 15:43:53 +00:00
|
|
|
};
|
|
|
|
}
|