summary refs log tree commit diff
path: root/pkgs/development/libraries/javascript/jquery-ui/default.nix
blob: e2d48f25bb5d647e35836ab1a72659302e4ef6b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchurl, unzip }:

stdenv.mkDerivation rec {
  name = "jquery-ui-1.10.2";

  src = fetchurl {
    url = "http://jqueryui.com/resources/download/${name}.custom.zip";
    sha256 = "0r1fmqpym7bjqhjay9br4h3izky781bsda7v7552yjwkgiv391hl";
  };

  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;
  };
}