dotenv-cli: init

Removes the package from node-packages and adds to pkgs/by-name
This commit is contained in:
Pyrox 2024-06-25 23:40:58 -04:00
parent 267d115a04
commit 61409956c7
No known key found for this signature in database
GPG Key ID: 8CDF3F7CAA53A0F5
5 changed files with 61 additions and 30 deletions

View File

@ -0,0 +1,26 @@
{
"name": "dotenv-cli",
"description": "A global executable to run applications with the ENV variables loaded by dotenv",
"version": "7.4.3",
"author": "entropitor",
"bin": {
"dotenv": "./cli.js"
},
"dependencies": {
"cross-spawn": "^7.0.3",
"dotenv": "^16.3.0",
"dotenv-expand": "^10.0.0",
"minimist": "^1.2.6"
},
"devDependencies": {
"standard": "^16.0.4"
},
"license": "MIT",
"main": "index.js",
"preferGlobal": true,
"repository": "entropitor/dotenv-cli",
"scripts": {
"lint": "standard"
},
"resolutions": {}
}

View File

@ -0,0 +1,34 @@
{
lib,
mkYarnPackage,
fetchYarnDeps,
fetchFromGitHub,
nix-update-script
}: mkYarnPackage rec {
pname = "dotenv-cli";
version = "7.4.3";
src = fetchFromGitHub {
owner = "entropitor";
repo = "dotenv-cli";
rev = "v${version}";
hash = "sha256-kR9LSHvbvKLuJBGrsmYMeqF3s8SF+/99OeNlKp9azI8=";
};
packageJSON = ./package.json;
offlineCache = fetchYarnDeps {
yarnLock = "${src}/yarn.lock";
hash = "sha256-Sx5DHUAXquqMqJgvhvHcRPqkfWN49+6icUQIos6OHCg=";
};
passthru.updateScript = nix-update-script { };
meta = {
description = "CLI to load dotenv files";
homepage = "https://github.com/entropitor/dotenv-cli";
changelog = "https://github.com/entropitor/dotenv-cli/releases/tag/v${version}";
license = lib.licenses.mit;
mainProgram = "dotenv";
maintainers = with lib.maintainers; [ pyrox0 ];
};
}

View File

@ -77,6 +77,7 @@ mapAliases {
dat = throw "dat was removed because it was broken"; # added 2023-08-21
inherit (pkgs) degit; # added 2023-08-18
inherit (pkgs) dockerfile-language-server-nodejs; # added 2023-08-18
inherit (pkgs) dotenv-cli; # added 2024-06-26
eask = pkgs.eask; # added 2023-08-17
inherit (pkgs.elmPackages) elm-test;
eslint_d = pkgs.eslint_d; # Added 2023-05-26

View File

@ -91,7 +91,6 @@
, "dhcp"
, "diagnostic-languageserver"
, "diff2html-cli"
, "dotenv-cli"
, "dotenv-vault"
, "elasticdump"
, "@electron-forge/cli"

View File

@ -68820,35 +68820,6 @@ in
bypassCache = true;
reconstructLock = true;
};
dotenv-cli = nodeEnv.buildNodePackage {
name = "dotenv-cli";
packageName = "dotenv-cli";
version = "7.4.2";
src = fetchurl {
url = "https://registry.npmjs.org/dotenv-cli/-/dotenv-cli-7.4.2.tgz";
sha512 = "SbUj8l61zIbzyhIbg0FwPJq6+wjbzdn9oEtozQpZ6kW2ihCcapKVZj49oCT3oPM+mgQm+itgvUQcG5szxVrZTA==";
};
dependencies = [
sources."cross-spawn-7.0.3"
sources."dotenv-16.4.5"
sources."dotenv-expand-10.0.0"
sources."isexe-2.0.0"
sources."minimist-1.2.8"
sources."path-key-3.1.1"
sources."shebang-command-2.0.0"
sources."shebang-regex-3.0.0"
sources."which-2.0.2"
];
buildInputs = globalBuildInputs;
meta = {
description = "A global executable to run applications with the ENV variables loaded by dotenv";
homepage = "https://github.com/entropitor/dotenv-cli#readme";
license = "MIT";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
dotenv-vault = nodeEnv.buildNodePackage {
name = "dotenv-vault";
packageName = "dotenv-vault";