Merge pull request #324465 from natsukium/dotenvx/init
dotenvx: init at 1.5.0
This commit is contained in:
commit
42ee2bf85f
40
pkgs/by-name/do/dotenvx/package.nix
Normal file
40
pkgs/by-name/do/dotenvx/package.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{
|
||||
lib,
|
||||
buildNpmPackage,
|
||||
fetchFromGitHub,
|
||||
testers,
|
||||
dotenvx,
|
||||
}:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "dotenvx";
|
||||
version = "1.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dotenvx";
|
||||
repo = "dotenvx";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-W2JnWRHwtEF/dw+oMgyZFQXBlw2QVNTYZnwQMAS0T8w=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-dQcIU0UjcBMqRw+Xk75HkKWG2b4Uq0YFnHcaF1jtGp8=";
|
||||
|
||||
dontNpmBuild = true;
|
||||
|
||||
passthru.tests = {
|
||||
version = testers.testVersion {
|
||||
package = dotenvx;
|
||||
# access to the home directory
|
||||
command = "HOME=$TMPDIR dotenvx --version";
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Better dotenv–from the creator of `dotenv";
|
||||
homepage = "https://github.com/dotenvx/dotenvx";
|
||||
changelog = "https://github.com/dotenvx/dotenvx/blob/${src.rev}/CHANGELOG.md";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ natsukium ];
|
||||
mainProgram = "dotenvx";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user