mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 11:23:29 +00:00
terraform-providers: use nurl in update-provider script
This commit is contained in:
parent
ffd510f099
commit
473ef198a9
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env nix-shell
|
#!/usr/bin/env nix-shell
|
||||||
#! nix-shell -i bash -p coreutils curl git jq moreutils nix nix-prefetch
|
#! nix-shell -i bash -p coreutils curl git jq moreutils nix nurl
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
# vim: ft=sh
|
# vim: ft=sh
|
||||||
#
|
#
|
||||||
@ -90,8 +90,7 @@ update_attr() {
|
|||||||
repo_root=$(git rev-parse --show-toplevel)
|
repo_root=$(git rev-parse --show-toplevel)
|
||||||
|
|
||||||
generate_hash() {
|
generate_hash() {
|
||||||
nix-prefetch -I nixpkgs="${repo_root}" \
|
nurl --expr "(import ${repo_root} {}).terraform-providers.${provider}.$1"
|
||||||
"{ sha256 }: (import ${repo_root} {}).terraform-providers.${provider}.$1.overrideAttrs (_: { inherit sha256; })"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo_provider() {
|
echo_provider() {
|
||||||
|
Loading…
Reference in New Issue
Block a user