159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
40 lines
931 B
Nix
40 lines
931 B
Nix
{
|
||
lib,
|
||
buildNpmPackage,
|
||
fetchFromGitHub,
|
||
testers,
|
||
dotenvx,
|
||
}:
|
||
|
||
buildNpmPackage rec {
|
||
pname = "dotenvx";
|
||
version = "1.14.0";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "dotenvx";
|
||
repo = "dotenvx";
|
||
rev = "refs/tags/v${version}";
|
||
hash = "sha256-UVev21LZ2y0C8BCSm6I8BTQziSDZUXP3A/ThOpKtsrQ=";
|
||
};
|
||
|
||
npmDepsHash = "sha256-ehWHIKYkSAkdTLGpBOU7lJoWNa5uv9Zy0+2qwnCv0m8=";
|
||
|
||
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";
|
||
};
|
||
}
|