44 lines
968 B
Nix
44 lines
968 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchYarnDeps,
|
|
fetchFromGitHub,
|
|
yarnConfigHook,
|
|
npmHooks,
|
|
nodejs,
|
|
nix-update-script,
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "dotenv-cli";
|
|
version = "10.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "entropitor";
|
|
repo = "dotenv-cli";
|
|
rev = "v${version}";
|
|
hash = "sha256-prSGIEHf6wRqOFVsn3Ws25yG7Ga2YEbiU/IMP3QeLXU=";
|
|
};
|
|
|
|
yarnOfflineCache = fetchYarnDeps {
|
|
yarnLock = "${src}/yarn.lock";
|
|
hash = "sha256-rbG1oM1mEZSB/eYp87YMi6v9ves5YR7u7rkQRlziz7I=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
yarnConfigHook
|
|
npmHooks.npmInstallHook
|
|
nodejs
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "CLI to load dotenv files";
|
|
homepage = "https://github.com/entropitor/dotenv-cli";
|
|
changelog = "https://github.com/entropitor/dotenv-cli/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "dotenv";
|
|
maintainers = with lib.maintainers; [ pyrox0 ];
|
|
};
|
|
}
|