From a4c80aee8e047f61964ae0b049ea04ee6bc5f3a0 Mon Sep 17 00:00:00 2001 From: Qiming Chu Date: Fri, 7 Mar 2025 11:04:30 +0800 Subject: [PATCH] vyxal: update mill dependency to use fetchurl for version and URL locking The source link for mill will be changing, so we need to specify the download link for mill here. Signed-off-by: Qiming Chu --- pkgs/by-name/vy/vyxal/package.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/vy/vyxal/package.nix b/pkgs/by-name/vy/vyxal/package.nix index 617b44209a95..160456ef2e30 100644 --- a/pkgs/by-name/vy/vyxal/package.nix +++ b/pkgs/by-name/vy/vyxal/package.nix @@ -3,6 +3,7 @@ stdenvNoCC, clangStdenv, fetchFromGitHub, + fetchurl, mill, which, }: @@ -10,11 +11,12 @@ let # we need to lock the mill version, because an update will change the # fetched internal dependencies, thus breaking the deps FOD - lockedMill = mill.overrideAttrs (oldAttrs: { + lockedMill = mill.overrideAttrs (oldAttrs: rec { # should ideally match the version listed inside the `.mill-version` file of the source version = "0.11.12"; - src = oldAttrs.src.overrideAttrs { - outputHash = "sha256-k4/oMHvtq5YXY8hRlX4gWN16ClfjXEAn6mRIoEBHNJo="; + src = fetchurl { + url = "https://github.com/com-lihaoyi/mill/releases/download/${version}/${version}-assembly"; + hash = "sha256-k4/oMHvtq5YXY8hRlX4gWN16ClfjXEAn6mRIoEBHNJo="; }; }); in