Commit 1a31e44d authored by Paul Meyer's avatar Paul Meyer
Browse files

distribution: use finalAttrs

parent b84bfe69
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -7,14 +7,14 @@
  distribution,
}:

buildGoModule rec {
buildGoModule (finalAttrs: {
  pname = "distribution";
  version = "3.0.0";

  src = fetchFromGitHub {
    owner = "distribution";
    repo = "distribution";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-myezQTEdH7kkpCoAeZMf5OBxT4Bz8Qx6vCnwim230RY=";
  };

@@ -30,7 +30,7 @@ buildGoModule rec {
  passthru = {
    tests.version = testers.testVersion {
      package = distribution;
      version = "v${version}";
      version = "v${finalAttrs.version}";
    };
    updateScript = nix-update-script { };
  };
@@ -50,4 +50,4 @@ buildGoModule rec {
    mainProgram = "registry";
    platforms = platforms.unix;
  };
}
})