2022-11-20T00:13:53 scala-cli 0.1.16 -> 0.1.17 https://github.com/Virtuslab/scala-cli/releases 2022-11-20T00:13:55 attrpath: scala-cli 2022-11-20T00:13:55 Checking auto update branch... 2022-11-20T00:13:59 [version] 2022-11-20T00:13:59 [version] skipping because derivation has updateScript 2022-11-20T00:13:59 [rustCrateVersion] 2022-11-20T00:13:59 [rustCrateVersion] No cargoSha256 found 2022-11-20T00:13:59 [golangModuleVersion] 2022-11-20T00:13:59 [golangModuleVersion] Not a buildGoModule package with vendorSha256 2022-11-20T00:13:59 [updateScript] 2022-11-20T00:14:13 [updateScript] Success 2022-11-20T00:14:13 [updateScript] these 2 derivations will be built: /nix/store/0yrjahac7xpva05qnylrm4bqgv5bzav6-scala-cli-update-script.drv /nix/store/31x45d6wci4zfi93niimgk8a4drbg0va-packages.json.drv building '/nix/store/0yrjahac7xpva05qnylrm4bqgv5bzav6-scala-cli-update-script.drv'... building '/nix/store/31x45d6wci4zfi93niimgk8a4drbg0va-packages.json.drv'... Going to be running update for following packages: - scala-cli-0.1.16 Press Enter key to continue... Running update for: - scala-cli-0.1.16: UPDATING ... - scala-cli-0.1.16: DONE. Packages updated! 2022-11-20T00:14:13 2022-11-20T00:14:13 [quotedUrls] 2022-11-20T00:14:13 [quotedUrls] nothing found to replace 2022-11-20T00:14:13 Diff after rewrites: diff --git a/pkgs/development/tools/build-managers/scala-cli/sources.json b/pkgs/development/tools/build-managers/scala-cli/sources.json index e3df6799330..6fb1463abcf 100644 --- a/pkgs/development/tools/build-managers/scala-cli/sources.json +++ b/pkgs/development/tools/build-managers/scala-cli/sources.json @@ -1,17 +1,17 @@ { - "version": "0.1.16", + "version": "0.1.17", "assets": { "aarch64-darwin": { "asset": "scala-cli-aarch64-apple-darwin.gz", - "sha256": "1ryjsf126dsqkpnkc2dmr3p373sb518q2ply0y1ifrx3rhqj0viq" + "sha256": "0p3z4wvindcb9wahq2q8ca24zgl05qb3z2asmqi2z54pqfkc21d7" }, "x86_64-darwin": { "asset": "scala-cli-x86_64-apple-darwin.gz", - "sha256": "1vfx9ccl08mykr579nq9kwbv88d6gaq1vd9xscwyq5rps6lxrz92" + "sha256": "17zj3g62b27blbdfa3j4lzvs3v13jyy7428zxalkpdx8ixy0ghyy" }, "x86_64-linux": { "asset": "scala-cli-x86_64-pc-linux.gz", - "sha256": "1p2lk2hkj149r27p4kwxvwlvjvzv9l0zncqfs3wa972jyn4hhr9g" + "sha256": "0dm7jhsvrjb73wyvvds17r779gcm00yvsy31arc8552df5nkq4iz" } } } 2022-11-20T00:15:40 Old version 0.1.16" not present in master derivation file with contents: { stdenv , coreutils , lib , installShellFiles , zlib , autoPatchelfHook , fetchurl , makeWrapper , callPackage , jre }: assert lib.versionAtLeast jre.version "17.0.0"; let pname = "scala-cli"; sources = builtins.fromJSON (builtins.readFile ./sources.json); inherit (sources) version assets; platforms = builtins.attrNames assets; in stdenv.mkDerivation { inherit pname version; nativeBuildInputs = [ installShellFiles makeWrapper ] ++ lib.optional stdenv.isLinux autoPatchelfHook; buildInputs = [ coreutils zlib stdenv.cc.cc ]; src = let asset = assets."${stdenv.hostPlatform.system}" or (throw "Unsupported platform ${stdenv.hostPlatform.system}"); in fetchurl { url = "https://github.com/Virtuslab/scala-cli/releases/download/v${version}/${asset.asset}"; sha256 = asset.sha256; }; unpackPhase = '' runHook preUnpack gzip -d < $src > scala-cli runHook postUnpack ''; installPhase = '' runHook preInstall install -Dm755 scala-cli $out/bin/.scala-cli-wrapped makeWrapper $out/bin/.scala-cli-wrapped $out/bin/scala-cli \ --set JAVA_HOME ${jre.home} runHook postInstall ''; # We need to call autopatchelf before generating completions dontAutoPatchelf = true; postFixup = lib.optionalString stdenv.isLinux '' autoPatchelf $out '' + '' # hack to ensure the completion function looks right # as $0 is used to generate the compdef directive mkdir temp cp $out/bin/.scala-cli-wrapped temp/scala-cli PATH="./temp:$PATH" installShellCompletion --cmd scala-cli \ --bash <(scala-cli completions bash) \ --zsh <(scala-cli completions zsh) ''; meta = with lib; { homepage = "https://scala-cli.virtuslab.org"; downloadPage = "https://github.com/VirtusLab/scala-cli/releases/v${version}"; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; license = licenses.asl20; description = "Command-line tool to interact with the Scala language"; maintainers = [ maintainers.kubukoz ]; }; passthru.updateScript = callPackage ./update.nix { } { inherit platforms pname version; }; }