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:
parent
59f8ccb41f
commit
71e370e534
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "mill";
|
pname = "mill";
|
||||||
version = "0.9.6";
|
version = "0.9.9";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/com-lihaoyi/mill/releases/download/${version}/${version}";
|
url = "https://github.com/com-lihaoyi/mill/releases/download/${version}/${version}-assembly";
|
||||||
sha256 = "sha256-cAhcTmSPkV5z5ryuCNrpxy9/1iWvvminiVYul9c/DwM=";
|
sha256 = "sha256-HIT7bxMEz7jpSsYvohN9+zYuyCf/ARE7hd48YMTo9/4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
@ -15,6 +15,9 @@ stdenv.mkDerivation rec {
|
|||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
|
# this is mostly downloading a pre-built artifact
|
||||||
|
preferLocal = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
install -Dm555 "$src" "$out/bin/.mill-wrapped"
|
install -Dm555 "$src" "$out/bin/.mill-wrapped"
|
||||||
@ -25,6 +28,13 @@ stdenv.mkDerivation rec {
|
|||||||
runHook postInstall
|
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; {
|
meta = with lib; {
|
||||||
homepage = "https://www.lihaoyi.com/mill";
|
homepage = "https://www.lihaoyi.com/mill";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
Loading…
Reference in New Issue
Block a user