diff options
Diffstat (limited to 'pkgs/by-name/do/dotenvx/package.nix')
-rw-r--r-- | pkgs/by-name/do/dotenvx/package.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/by-name/do/dotenvx/package.nix b/pkgs/by-name/do/dotenvx/package.nix new file mode 100644 index 0000000000000..a2dae9664cb96 --- /dev/null +++ b/pkgs/by-name/do/dotenvx/package.nix @@ -0,0 +1,40 @@ +{ + lib, + buildNpmPackage, + fetchFromGitHub, + testers, + dotenvx, +}: + +buildNpmPackage rec { + pname = "dotenvx"; + version = "1.7.0"; + + src = fetchFromGitHub { + owner = "dotenvx"; + repo = "dotenvx"; + rev = "refs/tags/v${version}"; + hash = "sha256-AEgf46LCqQCKdq7yEvvumtVVZltPUn8ktLuFiLJar3g="; + }; + + npmDepsHash = "sha256-TdMGkw5/aP9Ki65Ik7286fH5FD5VAfFgATul9ZOHWxA="; + + 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"; + }; +} |