spark-wallet: use HTTPS instead of SSH for Github

This commit is contained in:
nixbitcoin 2021-12-30 12:55:10 +00:00 committed by Erik Arvstedt
parent 906b7f83ff
commit bb9f0b54ca
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
2 changed files with 16 additions and 7 deletions

View File

@ -46,4 +46,13 @@ fetchurl {
hash = "$hash"; hash = "$hash";
}; };
EOF EOF
sed -i "s|src = .*/src;|src = ${fetchurl//$'\n'/\\n}|" node-packages.nix
sed -i "
# Use the verified package src
s|src = .*/src;|src = ${fetchurl//$'\n'/\\n}|
# github: use HTTPS instead of SSH, which requires user authentication
s|git+ssh://git@|https://|
s|ssh://git@|https://|
s|\.git#|#|
" node-packages.nix

View File

@ -1579,12 +1579,12 @@ let
sha512 = "t/7RxHXPH6cJtP0pRG6smSr9QJidhB+3kXu0KgXnbGYMgzEnUxRQ4/LDdfOwZEMyIh3/xHb8PX3t+lfL9z+YVQ=="; sha512 = "t/7RxHXPH6cJtP0pRG6smSr9QJidhB+3kXu0KgXnbGYMgzEnUxRQ4/LDdfOwZEMyIh3/xHb8PX3t+lfL9z+YVQ==";
}; };
}; };
"proxy-agent-git+ssh://git@github.com/shesek/node-proxy-agent.git#0d916427f586e41a1a4485db88509218017f9696" = { "proxy-agent-https://github.com/shesek/node-proxy-agent#0d916427f586e41a1a4485db88509218017f9696" = {
name = "proxy-agent"; name = "proxy-agent";
packageName = "proxy-agent"; packageName = "proxy-agent";
version = "3.1.1"; version = "3.1.1";
src = fetchgit { src = fetchgit {
url = "ssh://git@github.com/shesek/node-proxy-agent.git"; url = "https://github.com/shesek/node-proxy-agent.git";
rev = "0d916427f586e41a1a4485db88509218017f9696"; rev = "0d916427f586e41a1a4485db88509218017f9696";
sha256 = "9582aafb90887f3a600806240c0f71fd09ef2b8805a37281894b56e717a35d98"; sha256 = "9582aafb90887f3a600806240c0f71fd09ef2b8805a37281894b56e717a35d98";
}; };
@ -2030,12 +2030,12 @@ let
sha512 = "OUDHEssirmplo3F+1HWKUrUjvnQuA+nZI6i/JJBdXb5eq9IyEQwPyPpqND+SSsxf6TygpBEkUjISVRN4/VOpeg=="; sha512 = "OUDHEssirmplo3F+1HWKUrUjvnQuA+nZI6i/JJBdXb5eq9IyEQwPyPpqND+SSsxf6TygpBEkUjISVRN4/VOpeg==";
}; };
}; };
"superagent-proxy-git+ssh://git@github.com/shesek/superagent-proxy.git#b512f8bbcf1baa196058922ee3b6cfe45375ebc9" = { "superagent-proxy-https://github.com/shesek/superagent-proxy#b512f8bbcf1baa196058922ee3b6cfe45375ebc9" = {
name = "superagent-proxy"; name = "superagent-proxy";
packageName = "superagent-proxy"; packageName = "superagent-proxy";
version = "2.0.0"; version = "2.0.0";
src = fetchgit { src = fetchgit {
url = "ssh://git@github.com/shesek/superagent-proxy.git"; url = "https://github.com/shesek/superagent-proxy.git";
rev = "b512f8bbcf1baa196058922ee3b6cfe45375ebc9"; rev = "b512f8bbcf1baa196058922ee3b6cfe45375ebc9";
sha256 = "ca984f1f2dc7cfed2aa301de1daf4305c359e89276d897fffa92e7c80850d03c"; sha256 = "ca984f1f2dc7cfed2aa301de1daf4305c359e89276d897fffa92e7c80850d03c";
}; };
@ -2459,7 +2459,7 @@ let
sources."prelude-ls-1.1.2" sources."prelude-ls-1.1.2"
sources."process-nextick-args-2.0.1" sources."process-nextick-args-2.0.1"
sources."proxy-addr-2.0.5" sources."proxy-addr-2.0.5"
(sources."proxy-agent-git+ssh://git@github.com/shesek/node-proxy-agent.git#0d916427f586e41a1a4485db88509218017f9696" // { (sources."proxy-agent-https://github.com/shesek/node-proxy-agent#0d916427f586e41a1a4485db88509218017f9696" // {
dependencies = [ dependencies = [
sources."debug-4.1.1" sources."debug-4.1.1"
sources."ms-2.1.2" sources."ms-2.1.2"
@ -2533,7 +2533,7 @@ let
sources."semver-7.3.2" sources."semver-7.3.2"
]; ];
}) })
(sources."superagent-proxy-git+ssh://git@github.com/shesek/superagent-proxy.git#b512f8bbcf1baa196058922ee3b6cfe45375ebc9" // { (sources."superagent-proxy-https://github.com/shesek/superagent-proxy#b512f8bbcf1baa196058922ee3b6cfe45375ebc9" // {
dependencies = [ dependencies = [
sources."debug-3.2.6" sources."debug-3.2.6"
sources."ms-2.1.2" sources."ms-2.1.2"