Files
nixpkgs/pkgs/by-name/do/dotenvx/package.nix
2026-08-14 17:15:45 +00:00

43 lines
984 B
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
lib,
buildNpmPackage,
fetchFromGitHub,
testers,
}:
buildNpmPackage (finalAttrs: {
pname = "dotenvx";
version = "2.21.0";
src = fetchFromGitHub {
owner = "dotenvx";
repo = "dotenvx";
tag = "v${finalAttrs.version}";
hash = "sha256-caGRBMwfFF5dd8+ZMKpbgIAkcpzZBLkiM4J+fKzjUs4=";
};
npmDepsHash = "sha256-BRwho5K5v+j0qgqzmnH5zVAL/E8f8g/scSn3qqJHHuw=";
dontNpmBuild = true;
passthru.tests = {
version = testers.testVersion {
package = finalAttrs.finalPackage;
# 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/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [
natsukium
kaynetik
];
mainProgram = "dotenvx";
};
})