Skip to content

Commit 80bd600

Browse files
committed
upgrade mongo
1 parent e77a3bb commit 80bd600

File tree

2 files changed

+23
-21
lines changed

2 files changed

+23
-21
lines changed

flake.nix

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@
1414
xeger = callPackage ./xeger.nix {};
1515
mongodb = callPackage ./mongodb.nix {};
1616
gcc = callPackage ./gccWithCache.nix {};
17-
mongodb7 = callPackage ./mongodb.nix { version = "7.0.11"; inherit system; };
18-
mongodb6 = callPackage ./mongodb.nix { version = "6.0.12"; inherit system; };
19-
mongodb5 = callPackage ./mongodb.nix { version = "5.0.10"; inherit system; };
20-
mongodb4 = callPackage ./mongodb.nix { version = "4.4.16"; inherit system; };
21-
mongodb7-cn = callPackage ./mongodb.nix { version = "7.0.11"; inherit system; };
22-
mongodb6-cn = callPackage ./mongodb.nix { version = "6.0.12"; inherit system; };
23-
mongodb5-cn = callPackage ./mongodb.nix { version = "5.0.10"; inherit system; };
24-
mongodb4-cn = callPackage ./mongodb.nix { version = "4.4.16"; inherit system; };
17+
mongodb8 = callPackage ./mongodb.nix { version = "8.2.3"; inherit system; };
18+
mongodb7 = callPackage ./mongodb.nix { version = "7.0.28"; inherit system; };
19+
mongodb6 = callPackage ./mongodb.nix { version = "6.0.27"; inherit system; };
20+
mongodb5 = callPackage ./mongodb.nix { version = "5.0.32"; inherit system; };
21+
mongodb4 = callPackage ./mongodb.nix { version = "4.4.30"; inherit system; };
22+
mongodb8-cn = callPackage ./mongodb.nix { version = "8.2.3"; inherit system; };
23+
mongodb7-cn = callPackage ./mongodb.nix { version = "7.0.28"; inherit system; };
24+
mongodb6-cn = callPackage ./mongodb.nix { version = "6.0.27"; inherit system; };
25+
mongodb5-cn = callPackage ./mongodb.nix { version = "5.0.32"; inherit system; };
26+
mongodb4-cn = callPackage ./mongodb.nix { version = "4.4.30"; inherit system; };
2527
};
2628
mongodb = import ./mongodb.nix;
2729
}

mongodb.nix

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{ system ? builtins.currentSystem
22
, pkgs
3-
, version ? "7.0.11"
3+
, version ? "7.0.28"
44
, mirrors ? [
55
"https://mirrors.nju.edu.cn/mongodb/"
66
"https://mirror.iscas.ac.cn/mongodb/"
@@ -12,16 +12,16 @@
1212
let
1313
major = pkgs.lib.elemAt (pkgs.lib.splitString "." version) 0;
1414
sha256dict = {
15-
"4.4.16x86_64-linux" = "sha256-JZjGYCF5Ip0wqr+GTlHw9jdY0ZsswPN0aLdFAK1C35M=";
16-
"5.0.10x86_64-linux" = "sha256-NV+a1bBdY5z2559cJYgNYlTvoRfGHVWrvmyWcCLgxls=";
17-
"6.0.0x86_64-linux" = "sha256-AJUQ8Jo/T4PDnYtFg3njUZyoH9XXzleZ+nj/knCBKzg=";
18-
"6.0.12x86_64-linux" = "sha256-Fgk42wwdKLDZJsE1GxB4fcB1z22P0zkDxDb0HXu1ZsM=";
19-
"7.0.11x86_64-linux" = "sha256-NCRNvYnR0GfJ9q9pDmQWR7Cs6GgGalMxuTF0mdfXsZs=";
20-
"4.4.16aarch64-linux" = "sha256-8L+4uwIvhuVw9t4N1CuStHnwIZhOdZqiBsjcN+iIyBI=";
21-
"5.0.10aarch64-linux" = "sha256-phLLCL1wXE0pjrb4n1xQjoTVDYuFFRz5RQdfmYj9HPY=";
22-
"6.0.0aarch64-linux" = "sha256-nEmpS2HUeQdehQAiFgxKLnnYVV9aPKtUtb/GRS9f+4M=";
23-
"6.0.12aarch64-linux" = "sha256-0xAOKjFYVIIoRtDm6Cdqq+WP+ArpVlOna/YqePF3XKI=";
24-
"7.0.11aarch64-linux" = "sha256-g+7fCH4KWxDCsCtlkrts8i+ARy3jigF3O2tEINVE5b0=";
15+
"4.4.30x86_64-linux" = "sha256-VxbkCMKFIRxyhDzTlXlPcCluPz8MKmUPdCK4QcjvseU=";
16+
"5.0.32x86_64-linux" = "sha256-eV4rHHPTmcxFRizujWMkjEZ3yxwCetJ2RayKtRuWp2Q=";
17+
"6.0.27x86_64-linux" = "sha256-kjHJ42mT5+EGIPnM8Vv3j6npeUOGByDc/4yX3d5XUq8=";
18+
"7.0.28x86_64-linux" = "sha256-3oDvm5PAX6H+85c4P3xdYf/gctb9oAilgrtbLd/QvDc=";
19+
"8.2.3x86_64-linux" = "sha256-5oGk7dx8cWGU0lyoNSt8Hm9QgbVSzWOdnAKpKtBi5kY=";
20+
"4.4.30aarch64-linux" = "sha256-tLHuFov47sMmSXf1UeSfZztCNHNwrwk+p6FivjlEyVA=";
21+
"5.0.32aarch64-linux" = "sha256-qjWBO+JCpe6r+Tx66ojQpEHI88Z0QO8V3AinhPUpRLc=";
22+
"6.0.27aarch64-linux" = "sha256-oLhX4xO5KnrGnQEam+GM97SuabH7tNLMJbSAI0ZbO2s=";
23+
"7.0.28aarch64-linux" = "sha256-Pavus1VuK27fe7QExYDpUza6j0+MhVclA7kBtfpeWIo=";
24+
"8.2.3aarch64-linux" = "sha256-AbG4Xfnqcm+z7AvA2/ltEp58Qdp6EF3UdzHCT5iD9Fs=";
2525
};
2626
versionDetail = pkgs.lib.concatStrings [ version system ];
2727
buildDownloadUrl = system: version:
@@ -37,7 +37,7 @@ let
3737
nmajor = pkgs.lib.strings.toInt major;
3838
in
3939
pkgs.lib.concatStrings [
40-
(if nmajor >= 7 then "apt/ubuntu/dists/jammy" else "apt/ubuntu/dists/focal")
40+
(if nmajor >= 6 then "apt/ubuntu/dists/jammy" else "apt/ubuntu/dists/focal")
4141
"/mongodb-org/"
4242
"${major}.${minor}"
4343
"/multiverse/binary-"
@@ -84,7 +84,7 @@ pkgs.stdenvNoCC.mkDerivation {
8484
buildInputs = [
8585
pkgs.xz # liblzma.so.5
8686
pkgs.curl # libcurl.so.4
87-
] ++ (if (pkgs.lib.strings.toInt major) <= 6 then [
87+
] ++ (if (pkgs.lib.strings.toInt major) <= 5 then [
8888
pkgs.openssl_1_1 # libcrypto.so.1.1 libssl.so.1.1
8989
] else [ ]);
9090
unpackPhase = "true";

0 commit comments

Comments
 (0)