rar: 7.01 -> 7.12
This commit is contained in:
@@ -7,25 +7,21 @@
|
||||
}:
|
||||
|
||||
let
|
||||
version = "7.01";
|
||||
version = "7.12";
|
||||
downloadVersion = lib.replaceStrings [ "." ] [ "" ] version;
|
||||
# Use `./update.sh` to generate the entries below
|
||||
srcs = {
|
||||
i686-linux = {
|
||||
url = "https://www.rarlab.com/rar/rarlinux-x32-${downloadVersion}.tar.gz";
|
||||
hash = "sha256-1CSbxM7arGpn4Yj5fHEFKcDURFPrC2+XptLoaDH8LDs=";
|
||||
};
|
||||
x86_64-linux = {
|
||||
url = "https://www.rarlab.com/rar/rarlinux-x64-${downloadVersion}.tar.gz";
|
||||
hash = "sha256-34iWajylsSmIOuAT6kV7c2537qWFHc+gT+JT/trWrw8=";
|
||||
hash = "sha256-Yw2andExNnJzZnvuB5rRA/Rp8bfNvJtCpPKDzCmTurI=";
|
||||
};
|
||||
aarch64-darwin = {
|
||||
url = "https://www.rarlab.com/rar/rarmacos-arm-${downloadVersion}.tar.gz";
|
||||
hash = "sha256-BjEJFzKyRpN4XL6KYW7ykQcSxqF4tYr2dCFf50JHH38=";
|
||||
hash = "sha256-lQeOD1n/0F6+ZlpVfp1NHAcxVqJ3fZFn9sQg7kSKg8U=";
|
||||
};
|
||||
x86_64-darwin = {
|
||||
url = "https://www.rarlab.com/rar/rarmacos-x64-${downloadVersion}.tar.gz";
|
||||
hash = "sha256-1ExnVDre49wWwB/BKP/L9xdYOMx8qkeZfmObJ7xm4dY=";
|
||||
hash = "sha256-Wzp5Izpc4usNldBEb3OZCeNyByTTJegoxbDD8HNnCPo=";
|
||||
};
|
||||
};
|
||||
manSrc = fetchurl {
|
||||
|
||||
@@ -42,12 +42,12 @@ updateHash() {
|
||||
hash=$(nix store prefetch-file --json "$url" | jq -r .hash)
|
||||
currentHash=$(cd "$DIRNAME" && nix "${NIX_FLAGS[@]}" eval --raw "$NIXPKGS_ROOT#legacyPackages.$nix_arch.rar.src.outputHash")
|
||||
|
||||
sed -i "s|$currentHash|$hash|g" "$DIRNAME/default.nix"
|
||||
sed -i "s|$currentHash|$hash|g" "$DIRNAME/package.nix"
|
||||
}
|
||||
|
||||
updateVersion() {
|
||||
local -r version="$1"
|
||||
sed -i "s|version = \"[0-9.]*\";|version = \"$version\";|g" "$DIRNAME/default.nix"
|
||||
sed -i "s|version = \"[0-9.]*\";|version = \"$version\";|g" "$DIRNAME/package.nix"
|
||||
}
|
||||
|
||||
latestVersion="${1:-}"
|
||||
@@ -70,7 +70,6 @@ if [[ "$currentVersion" == "$latestVersion" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
updateHash "$latestVersion" x32 linux i686-linux
|
||||
updateHash "$latestVersion" x64 linux x86_64-linux
|
||||
updateHash "$latestVersion" arm macos aarch64-darwin
|
||||
updateHash "$latestVersion" x64 macos x86_64-darwin
|
||||
|
||||
Reference in New Issue
Block a user