mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
install: nix examples (draft)
This commit is contained in:
1 parent
c2d5696919
commit
91a7ebb23d
4 files changed
+75
-29
No files matched your search
@@ -0,0 +1,35 @@
|
||||
{ stdenv, fetchurl, dpkg, glibc, xz, curl, openssl, gcc-unwrapped, autoPatchelfHook }:
|
||||
|
||||
let in stdenv.mkDerivation {
|
||||
name = "mongodb-5.0.6";
|
||||
system = "x86_64-linux";
|
||||
src = fetchurl {
|
||||
url = "https://repo.mongodb.org/apt/ubuntu/dists/focal/mongodb-org/5.0/multiverse/binary-amd64/mongodb-org-server_5.0.6_amd64.deb";
|
||||
hash = "sha256-Rk43PNQN8p2/3XDDjWOzJmzBjs39CR06kLrTtr+5ngo=";
|
||||
};
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
dpkg
|
||||
];
|
||||
buildInputs = [
|
||||
glibc
|
||||
openssl # libcrypto.so.1.1 libssl.so.1.1
|
||||
xz # liblzma.so.5
|
||||
curl # libcurl.so.4
|
||||
gcc-unwrapped
|
||||
];
|
||||
unpackPhase = "true";
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
dpkg -x $src $out
|
||||
mkdir $out/bin
|
||||
mv $out/usr/bin/mongod $out/bin/mongod
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "MongoDB";
|
||||
homepage = https://www.mongodb.com/;
|
||||
maintainers = [ "undefined <i@undefined.moe>" ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user