Unverified Commit 068eff72 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

dotenvx: 1.61.1 -> 1.61.5; use finalAttrs (#512739)

parents 3b3ce72d 5f009043
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
@@ -3,27 +3,26 @@
  buildNpmPackage,
  fetchFromGitHub,
  testers,
  dotenvx,
}:

buildNpmPackage rec {
buildNpmPackage (finalAttrs: {
  pname = "dotenvx";
  version = "1.61.1";
  version = "1.61.5";

  src = fetchFromGitHub {
    owner = "dotenvx";
    repo = "dotenvx";
    tag = "v${version}";
    hash = "sha256-ZNGHtscG3JSxHyKfn6d39SamPwkOXkb3xPNgyeo9JmU=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-yyAlEgIbPQocPnZvDbmK2MIYpglESkQGMYE7PmJDdEM=";
  };

  npmDepsHash = "sha256-csxBcYg0iT0iPsRloLwicVqe2Fg+TprG1eZkg6gHSWs=";
  npmDepsHash = "sha256-YQ3b7Fm33Mfp2l2LQ/+iYal+iBTZn5v7lUyZ2geY46A=";

  dontNpmBuild = true;

  passthru.tests = {
    version = testers.testVersion {
      package = dotenvx;
      package = finalAttrs.finalPackage;
      # access to the home directory
      command = "HOME=$TMPDIR dotenvx --version";
    };
@@ -32,7 +31,7 @@ buildNpmPackage rec {
  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";
    changelog = "https://github.com/dotenvx/dotenvx/blob/${finalAttrs.src.tag}/CHANGELOG.md";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [
      natsukium
@@ -40,4 +39,4 @@ buildNpmPackage rec {
    ];
    mainProgram = "dotenvx";
  };
}
})