parent
e929c3dde2
commit
35e296f5e5
@ -0,0 +1,16 @@ |
||||
{ stdenv, callPackage, fetchurl, fetchpatch, ... } @ args: |
||||
|
||||
callPackage ./generic.nix (args // rec { |
||||
version = "1.73.0"; |
||||
|
||||
src = fetchurl { |
||||
#url = "mirror://sourceforge/boost/boost_1_73_0.tar.bz2"; |
||||
urls = [ |
||||
"mirror://sourceforge/boost/boost_1_73_0.tar.bz2" |
||||
"https://dl.bintray.com/boostorg/release/1.73.0/source/boost_1_73_0.tar.bz2" |
||||
]; |
||||
# SHA256 from http://www.boost.org/users/history/version_1_73_0.html |
||||
sha256 = "4eb3b8d442b426dc35346235c8733b5ae35ba431690e38c6a8263dce9fcbb402"; |
||||
}; |
||||
}) |
||||
|
@ -0,0 +1,22 @@ |
||||
diff --git a/tools/boost_install/boost-install.jam b/tools/boost_install/boost-install.jam
|
||||
index 4238f921e..8fc1ea269 100644
|
||||
--- a/tools/boost_install/boost-install.jam
|
||||
+++ b/tools/boost_install/boost-install.jam
|
||||
@@ -649,7 +649,7 @@ rule generate-cmake-config- ( target : sources * : properties * )
|
||||
""
|
||||
"# Compute the include and library directories relative to this file."
|
||||
""
|
||||
- "get_filename_component(_BOOST_CMAKEDIR \"${CMAKE_CURRENT_LIST_DIR}/../\" REALPATH)"
|
||||
+ "get_filename_component(_BOOST_REAL_CMAKEDIR \"${CMAKE_CURRENT_LIST_DIR}/../\" REALPATH)"
|
||||
: true ;
|
||||
|
||||
if [ path.is-rooted $(cmakedir) ]
|
||||
@@ -668,6 +668,8 @@ rule generate-cmake-config- ( target : sources * : properties * )
|
||||
" unset(_BOOST_CMAKEDIR_ORIGINAL)"
|
||||
"endif()"
|
||||
""
|
||||
+ "# Assume that the installer actually did know where the libs were to be installed"
|
||||
+ "get_filename_component(_BOOST_CMAKEDIR \"$(cmakedir-native)\" REALPATH)"
|
||||
: true ;
|
||||
}
|
||||
|
Loading…
Reference in new issue