nixpkgs/pkgs/development/libraries/swiften/default.nix
Ryan Mulligan a252f83fdb swiften: 3.0beta2 -> 4.0
Semi-automatic update generated by https://github.com/ryantm/nix-update tools.

This update was made based on information from https://repology.org/metapackage/swiften/versions.

These checks were done:

- built on NixOS
- ran `/nix/store/pfiq18ki0dzdd0zsbvv04sppr4f28fl5-swiften-4.0/bin/swiften-config -h` got 0 exit code
- ran `/nix/store/pfiq18ki0dzdd0zsbvv04sppr4f28fl5-swiften-4.0/bin/swiften-config --help` got 0 exit code
- ran `/nix/store/pfiq18ki0dzdd0zsbvv04sppr4f28fl5-swiften-4.0/bin/swiften-config help` got 0 exit code
- ran `/nix/store/pfiq18ki0dzdd0zsbvv04sppr4f28fl5-swiften-4.0/bin/swiften-config --version` and found version 4.0
- found 4.0 with grep in /nix/store/pfiq18ki0dzdd0zsbvv04sppr4f28fl5-swiften-4.0
- directory tree listing: https://gist.github.com/bf18dc85d27b684315737f90db4a6b64
2018-03-22 22:36:20 -07:00

32 lines
955 B
Nix

{ stdenv, python, fetchurl, openssl, boost }:
stdenv.mkDerivation rec {
name = "swiften-${version}";
version = "4.0";
buildInputs = [ python ];
propagatedBuildInputs = [ openssl boost ];
src = fetchurl {
url = "http://swift.im/downloads/releases/swift-${version}/swift-${version}.tar.gz";
sha256 = "06bk45hxqmny8z7x78ycrfrazq6xdzv5c28i8x0lgc85j03b5dsh";
};
buildPhase = ''
patchShebangs ./scons
./scons openssl=${openssl.dev} \
boost_includedir=${boost.dev}/include \
boost_libdir=${boost.out}/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 ];
};
}