diff options
author | Cole Mickens <cole.mickens@gmail.com> | 2020-08-13 01:28:06 -0700 |
---|---|---|
committer | Cole Mickens <cole.mickens@gmail.com> | 2020-08-13 01:28:06 -0700 |
commit | 409d19b8cf001c71fb8ff199e1ace1e1aee95e5b (patch) | |
tree | d2d53199257a8e1d77bebb57273190d567121880 /update.sh | |
parent | 43017b741fc58e54f60ce8d77be7ed24ad5e6dfb (diff) | |
download | nixlib-409d19b8cf001c71fb8ff199e1ace1e1aee95e5b.tar nixlib-409d19b8cf001c71fb8ff199e1ace1e1aee95e5b.tar.gz nixlib-409d19b8cf001c71fb8ff199e1ace1e1aee95e5b.tar.bz2 nixlib-409d19b8cf001c71fb8ff199e1ace1e1aee95e5b.tar.lz nixlib-409d19b8cf001c71fb8ff199e1ace1e1aee95e5b.tar.xz nixlib-409d19b8cf001c71fb8ff199e1ace1e1aee95e5b.tar.zst nixlib-409d19b8cf001c71fb8ff199e1ace1e1aee95e5b.zip |
update.sh: newer nix-prefetch and hashes
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/update.sh b/update.sh index 3da17fea8e2d..5c314101305f 100755 --- a/update.sh +++ b/update.sh @@ -95,14 +95,14 @@ function update() { # TODO: do this with nix instead of sed? sed -i "s/${rev}/${newrev}/" "${metadata}" sed -i "s|${date}|${newdate}|" "${metadata}" - sed -i "s/${sha256}/${newsha256}/" "${metadata}" + sed -i "s|${sha256}|${newsha256}|" "${metadata}" # CargoSha256 has to happen AFTER the other rev/sha256 bump if [[ "${cargoSha256}" != "missing_cargoSha256" ]]; then newcargoSha256="$(NIX_PATH="${tmpnixpath}" \ nix-prefetch \ "{ sha256 }: let p=(import ./build.nix).${upattr}; in p.cargoDeps.overrideAttrs (_: { cargoSha256 = sha256; })")" - sed -i "s/${cargoSha256}/${newcargoSha256}/" "${metadata}" + sed -i "s|${cargoSha256}|${newcargoSha256}|" "${metadata}" fi # VendorSha256 has to happen AFTER the other rev/sha256 bump @@ -110,7 +110,7 @@ function update() { newvendorSha256="$(NIX_PATH="${tmpnixpath}" \ nix-prefetch \ "{ sha256 }: let p=(import ./build.nix).${upattr}; in p.go-modules.overrideAttrs (_: { vendorSha256 = sha256; })")" - sed -i "s/${vendorSha256}/${newvendorSha256}/" "${metadata}" + sed -i "s|${vendorSha256}|${newvendorSha256}|" "${metadata}" fi set +x |