diff options
| author | aleksana <me@aleksana.moe> | 2024-07-03 20:29:10 +0800 |
|---|---|---|
| committer | aleksana <me@aleksana.moe> | 2024-07-03 21:54:10 +0800 |
| commit | 1862813d11b34e56e4724a9fac69610b5d8d2015 (patch) | |
| tree | 3e3d78fee8b3432c0370ecef499c7717d90ecb04 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | 5b63ef2a48545b449121e522a8d8cfd86dfc9dd5 (diff) | |
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
```
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
