From a1d2fb30d064d294d92e01e271cc82d98b0a6f51 Mon Sep 17 00:00:00 2001 From: TomaSajt <62384384+TomaSajt@users.noreply.github.com> Date: Mon, 3 Jun 2024 21:18:21 +0200 Subject: [PATCH] mill: use finalAttrs --- pkgs/development/tools/build-managers/mill/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/build-managers/mill/default.nix b/pkgs/development/tools/build-managers/mill/default.nix index fc071b7e21224..785d604c7d249 100644 --- a/pkgs/development/tools/build-managers/mill/default.nix +++ b/pkgs/development/tools/build-managers/mill/default.nix @@ -1,11 +1,11 @@ { lib, stdenv, fetchurl, jre, makeWrapper }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "mill"; version = "0.11.7"; src = fetchurl { - url = "https://github.com/com-lihaoyi/mill/releases/download/${version}/${version}-assembly"; + url = "https://github.com/com-lihaoyi/mill/releases/download/${finalAttrs.version}/${finalAttrs.version}-assembly"; hash = "sha256-iijKZlQoiIWos+Kdq9hIgiM5yM7xCf11abrJ71LO9jA="; }; @@ -50,4 +50,4 @@ stdenv.mkDerivation rec { maintainers = with maintainers; [ scalavision zenithal ]; platforms = lib.platforms.all; }; -} +})