git.iko.soy/typeable/nixpkgs
on master help sign in
swiften: fix build

It was failing with: LINK Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot0x /nix/store/mgdjnsrkqgmxqjaqaxgqyqm7fwyi96fk-binutils-2.31.1/bin/ld: cannot find -lssl /nix/store/mgdjnsrkqgmxqjaqaxgqyqm7fwyi96fk-binutils-2.31.1/bin/ld: cannot find -lcrypto collect2: error: ld returned 1 exit status

commit8ea42e7489170e6fdb9562305cb4776efe0479ee authorOrivej Desh <orivej@gmx.fr> dateWed 31 Jul 2019, 14:47 (7 years ago) parent3c9cea7
2 files changed+13−1
pkgs/development/libraries/swiften/default.nix+4−1 pkgs/development/libraries/swiften/scons.patch+9
pkgs/development/libraries/swiften/default.nix+4−1
@@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
1212 sha256 = "0w0aiszjd58ynxpacwcgf052zpmbpcym4dhci64vbfgch6wryz0w";
1313 };
1414
15+ patches = [ ./scons.patch ];
16+
1517 sconsFlags = [
1618 "openssl=${openssl.dev}"
1719 "boost_includedir=${boost.dev}/include"
@@ -23,12 +25,13 @@ stdenv.mkDerivation rec {
2325 installFlags+=" SWIFT_INSTALLDIR=$out"
2426 '';
2527
28+ enableParallelBuilding = true;
29+
2630 meta = with stdenv.lib; {
2731 description = "An XMPP library for C++, used by the Swift client";
2832 homepage = http://swift.im/swiften.html;
2933 license = licenses.gpl2Plus;
3034 platforms = platforms.linux;
3135 maintainers = [ maintainers.twey ];
32− broken = true; # TODO: Build is failing!
3336 };
3437}
pkgs/development/libraries/swiften/scons.patchnew file+9
@@ -0,0 +1,9 @@
1+--- a/BuildTools/SCons/SConscript.boot
2++++ b/BuildTools/SCons/SConscript.boot
3+@@ -129,5 +129 @@ vars.Add(PathVariable("sparkle_public_dsa_key", "Optional path to a public DSA k
4+-env_ENV = {
5+- 'PATH' : os.environ['PATH'],
6+- 'LD_LIBRARY_PATH' : os.environ.get("LD_LIBRARY_PATH", ""),
7+- 'TERM' : os.environ.get("TERM", ""),
8+-}
9++env_ENV = os.environ