Merge pull request #161942 from aaronjheng/mongosh
mongosh: init at 1.5.0
This commit is contained in:
commit
d85ed9ea2a
21
pkgs/development/tools/mongosh/default.nix
Normal file
21
pkgs/development/tools/mongosh/default.nix
Normal 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";
|
||||
};
|
||||
}
|
17
pkgs/development/tools/mongosh/gen/composition.nix
Normal file
17
pkgs/development/tools/mongosh/gen/composition.nix
Normal 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;
|
||||
}
|
2230
pkgs/development/tools/mongosh/gen/packages.nix
Normal file
2230
pkgs/development/tools/mongosh/gen/packages.nix
Normal file
File diff suppressed because it is too large
Load Diff
21
pkgs/development/tools/mongosh/generate.sh
Executable file
21
pkgs/development/tools/mongosh/generate.sh
Executable 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
|
3
pkgs/development/tools/mongosh/packages.json
Normal file
3
pkgs/development/tools/mongosh/packages.json
Normal file
@ -0,0 +1,3 @@
|
||||
[
|
||||
"mongosh"
|
||||
]
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user