diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2021-07-20 10:23:48 -0700 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-07-20 13:07:35 -0700 |
commit | 1916bd87173c3af6efa077da53180a16f3697139 (patch) | |
tree | ab69fdbdaeb856c28588a07533bab84edd00157c /pkgs/development/tools | |
parent | 3c093fd023e4e31ab3acf6e0c27ec82c2e2d2da0 (diff) | |
download | nixpkgs-1916bd87173c3af6efa077da53180a16f3697139.tar nixpkgs-1916bd87173c3af6efa077da53180a16f3697139.tar.gz nixpkgs-1916bd87173c3af6efa077da53180a16f3697139.tar.bz2 nixpkgs-1916bd87173c3af6efa077da53180a16f3697139.tar.lz nixpkgs-1916bd87173c3af6efa077da53180a16f3697139.tar.xz nixpkgs-1916bd87173c3af6efa077da53180a16f3697139.tar.zst nixpkgs-1916bd87173c3af6efa077da53180a16f3697139.zip |
mill: 0.9.8 -> 0.9.9
Use the `${version}-assembly` artifact, which avoids having to download it using the release script
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/build-managers/mill/default.nix | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/pkgs/development/tools/build-managers/mill/default.nix b/pkgs/development/tools/build-managers/mill/default.nix index 4682fab41db..27a21619c1d 100644 --- a/pkgs/development/tools/build-managers/mill/default.nix +++ b/pkgs/development/tools/build-managers/mill/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "mill"; - version = "0.9.8"; + version = "0.9.9"; src = fetchurl { - url = "https://github.com/com-lihaoyi/mill/releases/download/${version}/${version}"; - sha256 = "sha256-vWCzjit7MPrKqEYgJfQHAkam9J9NgMObOQ/A+OQr24o="; + 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; |