2024-03-06 13:04:44 +01:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
2024-03-06 14:44:18 +01:00
|
|
|
openssl,
|
|
|
|
xz,
|
|
|
|
curl,
|
|
|
|
autoPatchelfHook,
|
|
|
|
libgcc,
|
2024-03-06 13:04:44 +01:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "mongodb-bin";
|
|
|
|
version = "1.0.0";
|
|
|
|
srcs = [
|
2024-07-26 22:12:48 +02:00
|
|
|
(fetchurl {
|
|
|
|
url = "https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2204-6.0.14.tgz";
|
|
|
|
hash = "sha256-1MW3pVIffdxq63gY64ozM1erWM2ou2L8T+MTfG+ZPLg=";
|
|
|
|
})
|
|
|
|
(fetchurl {
|
|
|
|
url = "https://downloads.mongodb.com/compass/mongosh-2.1.5-linux-x64.tgz";
|
|
|
|
hash = "sha256-R1GGB0ZGqmpJtMUNF2+EJK6iNiChHuoHyOf2vKDcOKA=";
|
|
|
|
})
|
2024-03-06 13:04:44 +01:00
|
|
|
];
|
2024-03-06 14:44:18 +01:00
|
|
|
sourceRoot = ".";
|
2024-07-26 22:12:48 +02:00
|
|
|
nativeBuildInputs = [ autoPatchelfHook ];
|
2024-03-06 14:44:18 +01:00
|
|
|
buildPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp mongosh-2.1.5-linux-x64/bin/mongosh $out/bin/mongo
|
|
|
|
cp mongodb-linux-x86_64-ubuntu2204-6.0.14/bin/mongod $out/bin/mongod
|
|
|
|
'';
|
2024-07-26 22:12:48 +02:00
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
curl
|
|
|
|
xz
|
|
|
|
libgcc
|
|
|
|
];
|
2024-03-06 13:04:44 +01:00
|
|
|
}
|