nixpkgs/pkgs/tools
aleksana 1862813d11 treewide: convert cargoSha256 to cargoHash
This is done with the following bash script:

```
#!/usr/bin/env bash
process_line() {
    local filename=${1%:}
    if [[ $4 =~ \"(.*)\"\; ]]; then
      local sha256="${BASH_REMATCH[1]}"
    fi
    [[ -z $sha256 ]] && return 0
    local hash=$(nix hash to-sri --type sha256 $sha256)
    echo "Processing: $filename"
    echo "  $sha256 => $hash"
    sed -i "s|cargoSha256 = \"$sha256\"|cargoHash = \"$hash\"|"
$filename
}

# split output by line
grep -r 'cargoSha256 = ' . | while IFS= read -r line; do
    # split them further by space
    read -r -a parts <<< "$line"
    process_line "${parts[@]}"
done

```
2024-07-03 21:54:10 +08:00
..
admin treewide: change cargoSha256 with SRI hash to cargoHash 2024-07-03 21:53:11 +08:00
archivers treewide: change cargoSha256 with SRI hash to cargoHash 2024-07-03 21:53:11 +08:00
audio treewide: change cargoSha256 with SRI hash to cargoHash 2024-07-03 21:53:11 +08:00
backup treewide: change cargoSha256 with SRI hash to cargoHash 2024-07-03 21:53:11 +08:00
bluetooth adwaita-icon-theme: Move from gnome scope to top-level 2024-07-01 08:26:46 +02:00
bootloaders/refind refind: Drop samueldr as maintainer 2024-06-20 20:46:55 -04:00
cd-dvd isomd5sum: 1.2.4 -> 1.2.5 2024-06-26 01:09:29 +00:00
compression Merge master into staging-next 2024-06-29 12:01:32 +00:00
dotool
filesystems treewide: change cargoSha256 with SRI hash to cargoHash manually 2024-07-03 21:53:31 +08:00
games treewide: convert cargoSha256 to cargoHash 2024-07-03 21:54:10 +08:00
graphics treewide: change cargoSha256 with SRI hash to cargoHash 2024-07-03 21:53:11 +08:00
inputmethods Merge pull request #319049 from azuwis/ibus-pinyin 2024-07-03 11:03:35 +02:00
llm treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
misc treewide: convert cargoSha256 to cargoHash 2024-07-03 21:54:10 +08:00
networking treewide: convert cargoSha256 to cargoHash 2024-07-03 21:54:10 +08:00
nix treewide: convert cargoSha256 to cargoHash 2024-07-03 21:54:10 +08:00
package-management treewide: convert cargoSha256 to cargoHash 2024-07-03 21:54:10 +08:00
security treewide: convert cargoSha256 to cargoHash 2024-07-03 21:54:10 +08:00
system treewide: convert cargoSha256 to cargoHash 2024-07-03 21:54:10 +08:00
text treewide: convert cargoSha256 to cargoHash 2024-07-03 21:54:10 +08:00
typesetting treewide: convert cargoSha256 to cargoHash 2024-07-03 21:54:10 +08:00
video Merge staging-next into staging 2024-07-03 00:04:34 +00:00
virtualization Merge master into staging-next 2024-07-03 00:02:45 +00:00
wayland treewide: change cargoSha256 with SRI hash to cargoHash 2024-07-03 21:53:11 +08:00
X11 treewide: convert cargoSha256 to cargoHash 2024-07-03 21:54:10 +08:00