mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
43 lines
984 B
Nix
43 lines
984 B
Nix
{
|
||
lib,
|
||
buildNpmPackage,
|
||
fetchFromGitHub,
|
||
testers,
|
||
}:
|
||
|
||
buildNpmPackage (finalAttrs: {
|
||
pname = "dotenvx";
|
||
version = "2.31.1";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "dotenvx";
|
||
repo = "dotenvx";
|
||
tag = "v${finalAttrs.version}";
|
||
hash = "sha256-So9UOsH+LDkvntW2Kv85zo/5StWGXQAuMDR1fBptwnA=";
|
||
};
|
||
|
||
npmDepsHash = "sha256-mzqlMkryWipKSkVJF5ROuaW3z9wiHqvlFxZ/Z35CPTU=";
|
||
|
||
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";
|
||
};
|
||
})
|