mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-24 04:16:27 +02:00
7 lines
296 B
Bash
7 lines
296 B
Bash
|
#!/bin/sh
|
||
|
NEW_HASH="$(nix-prefetch \
|
||
|
--option extra-experimental-features flakes \
|
||
|
'{ sha256 }: (builtins.getFlake (toString ./.)).packages.x86_64-linux.default.goModules.overrideAttrs (_: { vendorSha256 = sha256; })')"
|
||
|
|
||
|
sed -i "s|vendorHash = \".*\"|vendorHash = \"${NEW_HASH}\"|" ./flake.nix
|