depot/pkgs/by-name/do/dotenv-cli/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

43 lines
967 B
Nix

{
lib,
stdenv,
fetchYarnDeps,
fetchFromGitHub,
yarnConfigHook,
npmHooks,
nodejs,
nix-update-script,
}:
stdenv.mkDerivation rec {
pname = "dotenv-cli";
version = "7.4.3";
src = fetchFromGitHub {
owner = "entropitor";
repo = "dotenv-cli";
rev = "v${version}";
hash = "sha256-kR9LSHvbvKLuJBGrsmYMeqF3s8SF+/99OeNlKp9azI8=";
};
yarnOfflineCache = fetchYarnDeps {
yarnLock = "${src}/yarn.lock";
hash = "sha256-Sx5DHUAXquqMqJgvhvHcRPqkfWN49+6icUQIos6OHCg=";
};
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 ];
};
}