mongodb: fix double link of isNamedError on darwin.
duplicate symbol 'mongo::error_details::isNamedCode<100>' in:
build/nixos/mongo/libmongodmain.a(db.o)
build/nixos/third_party/murmurhash3/libmurmurhash3.a(MurmurHash3.o)
duplicate symbol 'mongo::error_details::isNamedCode<11000>' in:
build/nixos/mongo/libmongodmain.a(db.o)
build/nixos/third_party/murmurhash3/libmurmurhash3.a(MurmurHash3.o)
ld: 380094 duplicate symbols for architecture x86_64
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
scons: *** [build/nixos/mongo/mongod] Error 1
scons: building terminated because of errors.
build/nixos/mongo/mongo failed: Error 1
build/nixos/mongo/mongos failed: Error 1
build/nixos/mongo/mongod failed: Error 1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, callPackage, lib, sasl, boost, Security, CoreFoundation, cctools }:
|
||||
{ stdenv, callPackage, fetchpatch, lib, sasl, boost, Security, CoreFoundation, cctools }:
|
||||
|
||||
let
|
||||
buildMongoDB = callPackage ./mongodb.nix {
|
||||
@@ -12,5 +12,12 @@ in buildMongoDB {
|
||||
version = "3.6.23";
|
||||
sha256 = "sha256-EJpIerW4zcGJvHfqJ65fG8yNsLRlUnRkvYfC+jkoFJ4=";
|
||||
patches = [ ./forget-build-dependencies.patch ]
|
||||
++ lib.optionals stdenv.isDarwin [ ./asio-no-experimental-string-view.patch ];
|
||||
++ lib.optionals stdenv.isDarwin [
|
||||
./asio-no-experimental-string-view.patch
|
||||
(fetchpatch {
|
||||
name = "fix double link of isNamedError.";
|
||||
url = "https://github.com/mongodb/mongo/commit/9c6751b9765d269b667324bb2efe1ca76a916d20.patch";
|
||||
sha256 = "sha256-4mcafqhBh7039ocEI9d/gXWck51X68PqtWtz4dapwwI=";
|
||||
})
|
||||
];
|
||||
}
|
||||
|
||||
@@ -21,5 +21,12 @@ in buildMongoDB {
|
||||
sha256 = "sha256-RvfCP462RG+ZVjcb23DgCuxCdfPl2/UgH8N7FgCghGI=";
|
||||
})
|
||||
]
|
||||
++ lib.optionals stdenv.isDarwin [ ./asio-no-experimental-string-view.patch ];
|
||||
++ lib.optionals stdenv.isDarwin [
|
||||
./asio-no-experimental-string-view.patch
|
||||
(fetchpatch {
|
||||
name = "fix double link of isNamedError.";
|
||||
url = "https://github.com/mongodb/mongo/commit/9c6751b9765d269b667324bb2efe1ca76a916d20.patch";
|
||||
sha256 = "sha256-4mcafqhBh7039ocEI9d/gXWck51X68PqtWtz4dapwwI=";
|
||||
})
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user