diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2020-12-08 02:54:58 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2020-12-08 05:06:17 +0100 |
commit | b101b25cef84b545dd5486f60849bcd66c99022c (patch) | |
tree | 7fff79bf83ee585cc238b35be17226df70b40dd7 /pkgs/development/libraries/libtorrent-rasterbar | |
parent | 5a500da7c2ad9cf24359e182c027f2ac9c7d2285 (diff) |
libtorrent-rasterbar: Fix build on darwin but still fails with some python issue
Diffstat (limited to 'pkgs/development/libraries/libtorrent-rasterbar')
-rw-r--r-- | pkgs/development/libraries/libtorrent-rasterbar/1.2/default.nix | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/pkgs/development/libraries/libtorrent-rasterbar/1.2/default.nix b/pkgs/development/libraries/libtorrent-rasterbar/1.2/default.nix index 91e5a54bab163..1233dcb393349 100644 --- a/pkgs/development/libraries/libtorrent-rasterbar/1.2/default.nix +++ b/pkgs/development/libraries/libtorrent-rasterbar/1.2/default.nix @@ -1,10 +1,10 @@ -{ stdenv, lib, fetchFromGitHub, pkgconfig, automake, autoconf -, zlib, boost, openssl, libtool, python, libiconv, ncurses +{ stdenv, fetchFromGitHub, pkg-config, automake, autoconf +, zlib, boost, openssl, libtool, python, libiconv, ncurses, SystemConfiguration }: let version = "1.2.6"; - formattedVersion = lib.replaceChars ["."] ["_"] version; + formattedVersion = stdenv.lib.replaceChars ["."] ["_"] version; # Make sure we override python, so the correct version is chosen # for the bindings, if overridden @@ -22,8 +22,12 @@ in stdenv.mkDerivation { }; enableParallelBuilding = true; - nativeBuildInputs = [ automake autoconf libtool pkgconfig ]; - buildInputs = [ boostPython openssl zlib python libiconv ncurses ]; + + nativeBuildInputs = [ automake autoconf libtool pkg-config ]; + + buildInputs = [ boostPython openssl zlib python libiconv ncurses ] + ++ stdenv.lib.optionals stdenv.isDarwin [ SystemConfiguration ]; + preConfigure = "./autotool.sh"; postInstall = '' @@ -45,6 +49,7 @@ in stdenv.mkDerivation { description = "A C++ BitTorrent implementation focusing on efficiency and scalability"; license = licenses.bsd3; maintainers = [ maintainers.phreedom ]; + broken = stdenv.isDarwin; platforms = platforms.unix; }; } |