diff options
author | James ‘Twey’ Kay <twey@twey.co.uk> | 2015-10-08 22:24:04 +0100 |
---|---|---|
committer | James ‘Twey’ Kay <twey@twey.co.uk> | 2015-10-11 22:03:39 +0100 |
commit | 4908be3259225b44cf2799abacb988fd6794a50f (patch) | |
tree | e1f7c518bd98793ed2bb52a4bc81d0ba47d54335 /pkgs/development/libraries/swiften | |
parent | d0ed2a7917bab11b7c71d9de2b32eabd6aaf6c57 (diff) |
swiften: init at 3.0beta2
Diffstat (limited to 'pkgs/development/libraries/swiften')
-rw-r--r-- | pkgs/development/libraries/swiften/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/libraries/swiften/default.nix b/pkgs/development/libraries/swiften/default.nix new file mode 100644 index 000000000000..3978461d0ca4 --- /dev/null +++ b/pkgs/development/libraries/swiften/default.nix @@ -0,0 +1,30 @@ +{ stdenv, python, fetchurl, openssl, boost }: +stdenv.mkDerivation rec { + name = "swiften-${version}"; + version = "3.0beta2"; + + buildInputs = [ python ]; + propagatedBuildInputs = [ openssl boost ]; + + src = fetchurl { + url = "http://swift.im/downloads/releases/swift-${version}/swift-${version}.tar.gz"; + sha256 = "0i6ks122rry9wvg6qahk3yiggi7nlkpgws1z0r41vi4i1siq0ls0"; + }; + + buildPhase = '' + ./scons openssl=${openssl} \ + boost_includedir=${boost.dev}/include \ + boost_libdir=${boost.lib}/lib \ + boost_bundled_enable=false \ + SWIFTEN_INSTALLDIR=$out $out + ''; + installPhase = "true"; + + meta = with stdenv.lib; { + description = "An XMPP library for C++, used by the Swift client"; + homepage = http://swift.im/swiften.html; + license = licenses.gpl2Plus; + platforms = platforms.linux; + maintainers = [ maintainers.twey ]; + }; +} |