2011-01-09 16:43:53 +01:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-06-14 13:37:50 +02:00
|
|
|
name = "jquery-ui-1.10.3";
|
2011-01-09 16:43:53 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-05-02 01:32:12 +02:00
|
|
|
url = "http://jqueryui.com/resources/download/${name}.custom.zip";
|
2013-06-14 13:37:50 +02:00
|
|
|
sha256 = "1nqh3fmjgy73cbwb5sj775242i6jhz3f5b9fxgrkq00dfvkls779";
|
2011-01-09 16:43:53 +01: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).
|
2013-06-14 13:37:50 +02:00
|
|
|
pushd $out/js
|
|
|
|
ln -s jquery-ui-*.custom.js jquery-ui.js
|
|
|
|
ln -s jquery-ui-*.custom.min.js jquery-ui.min.js
|
|
|
|
ln -s jquery-1.*.js jquery.js
|
|
|
|
popd
|
|
|
|
pushd $out/css/smoothness
|
|
|
|
ln -s jquery-ui-*.custom.css jquery-ui.css
|
2011-01-09 16:43:53 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://jqueryui.com/;
|
|
|
|
description = "A library of JavaScript widgets and effects";
|
2011-02-24 17:20:47 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2011-01-09 16:43:53 +01:00
|
|
|
};
|
|
|
|
}
|