Merge pull request #146251 from Stunkymonkey/smack-builder

This commit is contained in:
Sandro 2021-11-17 02:44:14 +01:00 committed by GitHub
commit deae59a278
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 8 deletions

View file

@ -1,7 +0,0 @@
source $stdenv/setup
mkdir smack
cd smack
tar xfvz $src
mkdir -p $out/share/java
cp libs/smack-*.jar $out/share/java

View file

@ -2,13 +2,23 @@
stdenv.mkDerivation {
name = "smack-4.1.9";
builder = ./builder.sh;
src = fetchurl {
url = "http://www.igniterealtime.org/downloadServlet?filename=smack/smack_4_1_9.tar.gz";
sha256 = "009x0qcxd4dkvwcjz2nla470pwbabwvg37wc21pslpw42ldi0bzp";
};
sourceRoot = ".";
installPhase = ''
runHook preInstall
mkdir -p $out/share/java
cp libs/smack-*.jar $out/share/java
runHook postInstall
'';
meta = {
description = "A XMPP (Jabber) client library for instant messaging and presence";
homepage = "http://www.igniterealtime.org/projects/smack/";