Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
921 B
Nix
41 lines
921 B
Nix
{
|
||
lib,
|
||
buildNpmPackage,
|
||
fetchFromGitHub,
|
||
testers,
|
||
dotenvx,
|
||
}:
|
||
|
||
buildNpmPackage rec {
|
||
pname = "dotenvx";
|
||
version = "1.51.0";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "dotenvx";
|
||
repo = "dotenvx";
|
||
tag = "v${version}";
|
||
hash = "sha256-vRvcsh4b/QlU+f7646t8O5F8VT/K6zBxbUpos+hh0fw=";
|
||
};
|
||
|
||
npmDepsHash = "sha256-AT9ZE7ip63t6vK/GBVM9JCmir68jrxMN54RoREmjSIk=";
|
||
|
||
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";
|
||
};
|
||
}
|