mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
a9ca5acac3
svn path=/nixpkgs/trunk/; revision=26099
33 lines
861 B
Nix
33 lines
861 B
Nix
{ stdenv, fetchurl, unzip }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "jquery-ui-1.8.10";
|
|
|
|
src = fetchurl {
|
|
url = "http://jqueryui.com/download/${name}.custom.zip";
|
|
sha256 = "0yglab9zmxr1il2rmxxd7gycpfaavgpi03h8nc5b2yx2kz80jlik";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
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";
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|