From 475ae50c7046dec8d7001a4e909e14a0e0121909 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 9 Jan 2011 15:43:53 +0000 Subject: [PATCH] * Added jQuery UI. svn path=/nixpkgs/trunk/; revision=25465 --- .../javascript/jquery-ui/default.nix | 31 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 5 +++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/development/libraries/javascript/jquery-ui/default.nix diff --git a/pkgs/development/libraries/javascript/jquery-ui/default.nix b/pkgs/development/libraries/javascript/jquery-ui/default.nix new file mode 100644 index 000000000000..1166ff560731 --- /dev/null +++ b/pkgs/development/libraries/javascript/jquery-ui/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, unzip }: + +stdenv.mkDerivation rec { + name = "jquery-ui-1.8.7"; + + src = fetchurl { + url = "http://jqueryui.com/download/${name}.custom.zip"; + sha256 = "17j6cmzri6gkrhp4qfnr73sql8qiyxzadrii4ljj62i6vhkb1x2i"; + }; + + 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"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index cb1bb8396c23..be3885851b12 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4229,6 +4229,11 @@ let zziplib = callPackage ../development/libraries/zziplib { }; + ### DEVELOPMENT / LIBRARIES / JAVASCRIPT + + jquery_ui = callPackage ../development/libraries/javascript/jquery-ui { }; + + ### DEVELOPMENT / PERL MODULES buildPerlPackage = import ../development/perl-modules/generic perl;