Merge pull request #324465 from natsukium/dotenvx/init

dotenvx: init at 1.5.0
This commit is contained in:
OTABI Tomoya 2024-07-12 14:37:51 +09:00 committed by GitHub
commit 42ee2bf85f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View 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 dotenvfrom 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";
};
}