Skip to content

Commit

Permalink
mongoc: 1.23.1 -> 1.23.2
Browse files Browse the repository at this point in the history
fix: sha256 didn't match 1.23.1 version (matched 1.8.0) - now matches 1.23.2.
fix: 1.23.x failed at install phase NixOS#144170.
  • Loading branch information
tux1c committed Feb 13, 2023
1 parent 1b82144 commit 46e828f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pkgs/development/libraries/mongoc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,22 @@
}:
stdenv.mkDerivation rec {
pname = "mongoc";
version = "1.23.1";
version = "1.23.2";

src = fetchzip {
url = "https://github.com/mongodb/mongo-c-driver/releases/download/${version}/mongo-c-driver-${version}.tar.gz";
sha256 = "1vnnk3pwbcmwva1010bl111kdcdx3yb2w7j7a78hhvrm1k9r1wp8";
sha256 = "08v7xc5m86apd338swd8g83ccvd6ni75xbdhqqwkrjbznljf8fjf";
};

# https://github.com/NixOS/nixpkgs/issues/25585
preFixup = ''rm -rf "$(pwd)" '';

postPatch = ''
substituteInPlace src/libmongoc/CMakeLists.txt \
--replace "\\\''${prefix}/" ""
substituteInPlace src/libbson/CMakeLists.txt \
--replace "\\\''${prefix}/" ""
'';

nativeBuildInputs = [cmake pkg-config perl];
buildInputs = [openssl zlib cyrus_sasl];
Expand Down

0 comments on commit 46e828f

Please sign in to comment.