774da9d4e0
I accidentally included the minor version number. Version 3.5 has been removed from nixpkgs unstable.
16 lines
531 B
Nix
16 lines
531 B
Nix
{ pkgs }: with pkgs;
|
|
|
|
let
|
|
rpcauthSrc = builtins.fetchurl {
|
|
url = "https://raw.githubusercontent.com/bitcoin/bitcoin/d6cde007db9d3e6ee93bd98a9bbfdce9bfa9b15b/share/rpcauth/rpcauth.py";
|
|
sha256 = "189mpplam6yzizssrgiyv70c9899ggh8cac76j4n7v0xqzfip07n";
|
|
};
|
|
rpcauth = pkgs.writeScriptBin "rpcauth" ''
|
|
exec ${pkgs.python3}/bin/python ${rpcauthSrc} "$@"
|
|
'';
|
|
in
|
|
writeScript "generate-secrets" ''
|
|
export PATH=${lib.makeBinPath [ coreutils apg openssl gnugrep rpcauth ]}
|
|
. ${./generate-secrets.sh} ${./openssl.cnf}
|
|
''
|