lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

mill: 0.12.14 -> 1.0.4

skykanin 914a3a6a fd3bd33d

+50 -20
+32 -20
pkgs/by-name/mi/mill/package.nix
··· 1 1 { 2 - lib, 3 - stdenv, 2 + autoPatchelfHook, 4 3 fetchurl, 5 4 jre, 5 + lib, 6 6 makeWrapper, 7 + sourcesJSON ? ./sources.json, 8 + stdenvNoCC, 9 + zlib, 7 10 }: 8 11 9 - stdenv.mkDerivation (finalAttrs: { 12 + stdenvNoCC.mkDerivation (finalAttrs: { 10 13 pname = "mill"; 11 - version = "0.12.14"; 14 + version = "1.0.4"; 12 15 13 - src = fetchurl { 14 - url = "https://repo1.maven.org/maven2/com/lihaoyi/mill-dist/${finalAttrs.version}/mill-dist-${finalAttrs.version}.exe"; 15 - hash = "sha256-2MyufFcgKH/bxVB83qXNESByAdgbzhyIHqAr36Bb9o0="; 16 - }; 16 + src = 17 + let 18 + source = (lib.importJSON sourcesJSON)."${stdenvNoCC.hostPlatform.system}"; 19 + in 20 + fetchurl { 21 + url = "https://repo1.maven.org/maven2/com/lihaoyi/mill-dist-${source.artifact-suffix}/${finalAttrs.version}/mill-dist-${source.artifact-suffix}-${finalAttrs.version}.exe"; 22 + inherit (source) hash; 23 + }; 17 24 18 - nativeBuildInputs = [ makeWrapper ]; 25 + buildInputs = [ zlib ]; 26 + nativeBuildInputs = [ 27 + makeWrapper 28 + ] 29 + ++ lib.optional stdenvNoCC.hostPlatform.isLinux autoPatchelfHook; 19 30 20 31 dontUnpack = true; 21 32 dontConfigure = true; ··· 26 37 27 38 installPhase = '' 28 39 runHook preInstall 29 - install -Dm555 "$src" "$out/bin/.mill-wrapped" 40 + 41 + install -Dm 555 $src $out/bin/.mill-wrapped 30 42 # can't use wrapProgram because it sets --argv0 31 - makeWrapper "$out/bin/.mill-wrapped" "$out/bin/mill" \ 43 + makeWrapper $out/bin/.mill-wrapped $out/bin/mill \ 32 44 --prefix PATH : "${jre}/bin" \ 33 - --set JAVA_HOME "${jre}" 34 - runHook postInstall 35 - ''; 45 + --set-default JAVA_HOME "${jre}" 36 46 37 - doInstallCheck = true; 38 - # The default release is a script which will do an impure download 39 - # just ensure that the application can run without network 40 - installCheckPhase = '' 41 - $out/bin/mill --help > /dev/null 47 + runHook postInstall 42 48 ''; 43 49 44 50 meta = with lib; { ··· 57 63 scalavision 58 64 zenithal 59 65 ]; 60 - platforms = lib.platforms.all; 66 + platforms = [ 67 + "x86_64-linux" 68 + "aarch64-linux" 69 + "aarch64-darwin" 70 + "x86_64-darwin" 71 + ]; 72 + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 61 73 }; 62 74 })
+18
pkgs/by-name/mi/mill/sources.json
··· 1 + { 2 + "aarch64-darwin": { 3 + "artifact-suffix": "native-mac-aarch64", 4 + "hash": "sha256-A9dShPyfkfTuRJ1/DkLwb/5NTRTxc7OY7Rd1h0Tzjos=" 5 + }, 6 + "x86_64-darwin": { 7 + "artifact-suffix": "native-mac-amd64", 8 + "hash": "sha256-zctTOVxFghF9z9PUQt3OO20Ul/qY8H/j6MPpFNpw+Ow=" 9 + }, 10 + "aarch64-linux": { 11 + "artifact-suffix": "native-linux-aarch64", 12 + "hash": "sha256-E+IMTkRP1a1TigpRyVHPu0assgHEbzbF8lv7Rsm2FOM=" 13 + }, 14 + "x86_64-linux": { 15 + "artifact-suffix": "native-linux-amd64", 16 + "hash": "sha256-rgAqlTCZc8nedUU2D+Klo3KY0z9sI0KJczdaugM3//8=" 17 + } 18 + }