mill: 0.9.6 -> 0.9.9

Use the `${version}-assembly` artifact, which avoids
having to download it using the release script

(cherry picked from commit 74090eb68a2fd8e0a6ef0000f36a784ed2d27194)
This commit is contained in:
Jonathan Ringer 2021-07-20 10:23:48 -07:00 committed by Jonathan Ringer
parent 59f8ccb41f
commit 71e370e534
1 changed files with 13 additions and 3 deletions

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
pname = "mill";
version = "0.9.6";
version = "0.9.9";
src = fetchurl {
url = "https://github.com/com-lihaoyi/mill/releases/download/${version}/${version}";
sha256 = "sha256-cAhcTmSPkV5z5ryuCNrpxy9/1iWvvminiVYul9c/DwM=";
url = "https://github.com/com-lihaoyi/mill/releases/download/${version}/${version}-assembly";
sha256 = "sha256-HIT7bxMEz7jpSsYvohN9+zYuyCf/ARE7hd48YMTo9/4=";
};
nativeBuildInputs = [ makeWrapper ];
@ -15,6 +15,9 @@ stdenv.mkDerivation rec {
dontConfigure = true;
dontBuild = true;
# this is mostly downloading a pre-built artifact
preferLocal = true;
installPhase = ''
runHook preInstall
install -Dm555 "$src" "$out/bin/.mill-wrapped"
@ -25,6 +28,13 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
doInstallCheck = true;
# The default release is a script which will do an impure download
# just ensure that the application can run without network
installCheckPhase = ''
$out/bin/mill --help > /dev/null
'';
meta = with lib; {
homepage = "https://www.lihaoyi.com/mill";
license = licenses.mit;