Loading pkgs/development/tools/unityhub/default.nix +4 −2 Original line number Diff line number Diff line Loading @@ -5,11 +5,11 @@ stdenv.mkDerivation rec { pname = "unityhub"; version = "3.4.1"; version = "3.4.2"; src = fetchurl { url = "https://hub-dist.unity3d.com/artifactory/hub-debian-prod-local/pool/main/u/unity/unityhub_amd64/unityhub-amd64-${version}.deb"; sha256 = "sha256-/P6gPLSRGfwEN801cyNrZTpHyZKO+4tU6cFvLz8ERuo="; sha256 = "sha256-I1qtrD94IpMut0a6JUHErHaksoZ+z8/dDG8U68Y5zJE="; }; nativeBuildInputs = [ Loading Loading @@ -119,6 +119,8 @@ stdenv.mkDerivation rec { runHook postInstall ''; passthru.updateScript = ./update.sh; meta = with lib; { description = "Official Unity3D app to download and manage Unity Projects and installations"; homepage = "https://unity3d.com/"; Loading pkgs/development/tools/unityhub/update.sh 0 → 100755 +13 −0 Original line number Diff line number Diff line #!/usr/bin/env nix-shell #!nix-shell -i bash -p curl common-updater-scripts # set -euo pipefail new_version="$(curl https://hub-dist.unity3d.com/artifactory/hub-debian-prod-local/dists/stable/main/binary-amd64/Packages --silent | sed -nE "s/^Version: ([0-9]+\.[0-9]+\.[0-9]+)$/\1/p" | sort -V | tail -n 1)" old_version="$(sed -nE 's/^\s*version = "([0-9]+\.[0-9]+\.[0-9]+)";$/\1/p' ./default.nix)" if [[ "$new_version" == "$old_version" ]]; then echo "Up to date" exit 0 fi update-source-version unityhub "$new_version" Loading
pkgs/development/tools/unityhub/default.nix +4 −2 Original line number Diff line number Diff line Loading @@ -5,11 +5,11 @@ stdenv.mkDerivation rec { pname = "unityhub"; version = "3.4.1"; version = "3.4.2"; src = fetchurl { url = "https://hub-dist.unity3d.com/artifactory/hub-debian-prod-local/pool/main/u/unity/unityhub_amd64/unityhub-amd64-${version}.deb"; sha256 = "sha256-/P6gPLSRGfwEN801cyNrZTpHyZKO+4tU6cFvLz8ERuo="; sha256 = "sha256-I1qtrD94IpMut0a6JUHErHaksoZ+z8/dDG8U68Y5zJE="; }; nativeBuildInputs = [ Loading Loading @@ -119,6 +119,8 @@ stdenv.mkDerivation rec { runHook postInstall ''; passthru.updateScript = ./update.sh; meta = with lib; { description = "Official Unity3D app to download and manage Unity Projects and installations"; homepage = "https://unity3d.com/"; Loading
pkgs/development/tools/unityhub/update.sh 0 → 100755 +13 −0 Original line number Diff line number Diff line #!/usr/bin/env nix-shell #!nix-shell -i bash -p curl common-updater-scripts # set -euo pipefail new_version="$(curl https://hub-dist.unity3d.com/artifactory/hub-debian-prod-local/dists/stable/main/binary-amd64/Packages --silent | sed -nE "s/^Version: ([0-9]+\.[0-9]+\.[0-9]+)$/\1/p" | sort -V | tail -n 1)" old_version="$(sed -nE 's/^\s*version = "([0-9]+\.[0-9]+\.[0-9]+)";$/\1/p' ./default.nix)" if [[ "$new_version" == "$old_version" ]]; then echo "Up to date" exit 0 fi update-source-version unityhub "$new_version"