2024-07-27 06:49:29 +00:00
|
|
|
|
{
|
|
|
|
|
lib,
|
|
|
|
|
buildNpmPackage,
|
|
|
|
|
fetchFromGitHub,
|
|
|
|
|
testers,
|
|
|
|
|
dotenvx,
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
|
pname = "dotenvx";
|
2024-10-04 16:56:33 +00:00
|
|
|
|
version = "1.14.2";
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "dotenvx";
|
|
|
|
|
repo = "dotenvx";
|
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
|
hash = "sha256-SlZ18ToGbC+c5ffuYFGeOy30w90ukBO0qKxD+HNVt3E=";
|
2024-07-27 06:49:29 +00:00
|
|
|
|
};
|
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
|
npmDepsHash = "sha256-KaqSCtraMmQHe7Tcs/2CVaQcmazgHkV5K4T64lHEVP4=";
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
};
|
|
|
|
|
}
|