dotenvx: init at 1.5.0

https://github.com/dotenvx/dotenvx
This commit is contained in:
natsukium 2024-07-04 12:21:30 +09:00
parent fbf23f6af1
commit 28430690eb
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

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