mongosh: init at 1.5.0

This commit is contained in:
Aaron Jheng 2022-02-26 08:24:49 +00:00
parent e6123938ca
commit fdd7b027c7
No known key found for this signature in database
GPG key ID: F6A547A869D050A3
6 changed files with 2294 additions and 0 deletions

View file

@ -0,0 +1,21 @@
{ pkgs, stdenv, lib, testers, mongosh }:
let
nodePackages = import ./gen/composition.nix {
inherit pkgs;
inherit (stdenv.hostPlatform) system;
};
in
nodePackages.mongosh.override {
passthru.tests.version = testers.testVersion {
package = mongosh;
};
meta = with lib; {
homepage = "https://www.mongodb.com/try/download/shell";
description = "The MongoDB Shell";
maintainers = with maintainers; [ aaronjheng ];
license = licenses.asl20;
mainProgram = "mongosh";
};
}

View file

@ -0,0 +1,17 @@
# This file has been generated by node2nix 1.11.1. Do not edit!
{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-14_x"}:
let
nodeEnv = import ../../../node-packages/node-env.nix {
inherit (pkgs) stdenv lib python2 runCommand writeTextFile writeShellScript;
inherit pkgs nodejs;
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
};
in
import ./packages.nix {
inherit (pkgs) fetchurl nix-gitignore stdenv lib fetchgit;
inherit nodeEnv;
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,21 @@
#!/usr/bin/env nix-shell
#! nix-shell -i bash -p node2nix
MONGOSH_ROOT="$(
cd "$(dirname "$0")"
pwd
)"
pushd $MONGOSH_ROOT 1>/dev/null
rm -rf gen && mkdir -p gen
node2nix \
--no-copy-node-env \
--node-env ../../node-packages/node-env.nix \
--input packages.json \
--output gen/packages.nix \
--composition gen/composition.nix \
--strip-optional-dependencies \
--nodejs-14
popd 1>/dev/null

View file

@ -0,0 +1,3 @@
[
"mongosh"
]

View file

@ -629,6 +629,8 @@ with pkgs;
mod = callPackage ../development/tools/mod { };
mongosh = callPackage ../development/tools/mongosh { };
mysql-shell = callPackage ../development/tools/mysql-shell {
inherit (darwin) cctools developer_cmds DarwinTools;
inherit (darwin.apple_sdk.frameworks) CoreServices;