Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchYarnDeps, 5 fetchFromGitHub, 6 yarnConfigHook, 7 npmHooks, 8 nodejs, 9 nix-update-script, 10}: 11stdenv.mkDerivation rec { 12 pname = "dotenv-cli"; 13 version = "10.0.0"; 14 15 src = fetchFromGitHub { 16 owner = "entropitor"; 17 repo = "dotenv-cli"; 18 rev = "v${version}"; 19 hash = "sha256-prSGIEHf6wRqOFVsn3Ws25yG7Ga2YEbiU/IMP3QeLXU="; 20 }; 21 22 yarnOfflineCache = fetchYarnDeps { 23 yarnLock = "${src}/yarn.lock"; 24 hash = "sha256-rbG1oM1mEZSB/eYp87YMi6v9ves5YR7u7rkQRlziz7I="; 25 }; 26 27 nativeBuildInputs = [ 28 yarnConfigHook 29 npmHooks.npmInstallHook 30 nodejs 31 ]; 32 33 passthru.updateScript = nix-update-script { }; 34 35 meta = { 36 description = "CLI to load dotenv files"; 37 homepage = "https://github.com/entropitor/dotenv-cli"; 38 changelog = "https://github.com/entropitor/dotenv-cli/releases/tag/v${version}"; 39 license = lib.licenses.mit; 40 mainProgram = "dotenv"; 41 maintainers = with lib.maintainers; [ pyrox0 ]; 42 }; 43}