mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-14 19:30:21 +00:00
43 lines
984 B
Nix
43 lines
984 B
Nix
{
|
||
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 dotenv–from 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";
|
||
};
|
||
})
|