Derivations/Unityhub: Add custom unityhub 3.13 derivation with fixed libxml and removed Gconf
nixpkgs issues/419634#issuecomment-3052547176
This commit is contained in:
13
derivations/unityhub/update.sh
Normal file
13
derivations/unityhub/update.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/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' ./package.nix)"
|
||||
|
||||
if [[ "$new_version" == "$old_version" ]]; then
|
||||
echo "Up to date"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
update-source-version unityhub "$new_version"
|
||||
Reference in New Issue
Block a user