secrets: use fetchurl derivation

This moves fetching from eval time to build time, which is a better
fit for fetching build time resources.
This commit is contained in:
Erik Arvstedt 2022-08-22 14:57:44 +02:00
parent 1713e016a0
commit 030be842c8
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -73,7 +73,7 @@ let
generateSecretsScript = mkOption {
internal = true;
default = let
rpcauthSrc = builtins.fetchurl {
rpcauthSrc = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/bitcoin/bitcoin/d6cde007db9d3e6ee93bd98a9bbfdce9bfa9b15b/share/rpcauth/rpcauth.py";
sha256 = "189mpplam6yzizssrgiyv70c9899ggh8cac76j4n7v0xqzfip07n";
};