From 1974f19dfff918268a40edc2b34c3037767d74d6 Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Tue, 26 Feb 2008 09:07:12 +0000 Subject: [PATCH] Added smack library svn path=/nixpkgs/trunk/; revision=10857 --- pkgs/development/libraries/java/smack/builder.sh | 6 ++++++ pkgs/development/libraries/java/smack/default.nix | 11 +++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 3 files changed, 21 insertions(+) create mode 100644 pkgs/development/libraries/java/smack/builder.sh create mode 100644 pkgs/development/libraries/java/smack/default.nix diff --git a/pkgs/development/libraries/java/smack/builder.sh b/pkgs/development/libraries/java/smack/builder.sh new file mode 100644 index 000000000000..276e3f6e6a91 --- /dev/null +++ b/pkgs/development/libraries/java/smack/builder.sh @@ -0,0 +1,6 @@ +source $stdenv/setup + +tar xfvz $src +cd smack* +ensureDir $out/share/java +cp *.jar $out/share/java diff --git a/pkgs/development/libraries/java/smack/default.nix b/pkgs/development/libraries/java/smack/default.nix new file mode 100644 index 000000000000..0ccf525d57eb --- /dev/null +++ b/pkgs/development/libraries/java/smack/default.nix @@ -0,0 +1,11 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "smack-3_0_4"; + builder = ./builder.sh; + + src = fetchurl { + url = http://www.igniterealtime.org/downloadServlet?filename=smack/smack_3_0_4.tar.gz; + md5 = "a7eb7df35ed8ab959badd370f995c671"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c4b39125e720..e642b79e5db3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3144,6 +3144,10 @@ rec { stdenv = overrideInStdenv stdenv [gnumake380]; }; + smack = import ../development/libraries/java/smack { + inherit stdenv fetchurl; + }; + swt = import ../development/libraries/java/swt { inherit stdenv fetchurl unzip jdk pkgconfig; inherit (gtkLibs) gtk;