|
|
|
@ -3,15 +3,15 @@
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
let
|
|
|
|
|
# the last commit from master as of 2021-12-06
|
|
|
|
|
# the last commit from master as of 2022-02-08
|
|
|
|
|
rustOverlay = import (builtins.fetchTarball {
|
|
|
|
|
url = "https://github.com/oxalica/rust-overlay/archive/96f1bd1ec11d9c9e8b41c7560df9efae8d091908.tar.gz";
|
|
|
|
|
sha256 = "07qfya55d3lw4mblm62ykx8h9zg2ms3891ik30qzzpywwacafi8j";
|
|
|
|
|
url = "https://github.com/oxalica/rust-overlay/archive/2eae19e246433530998cbf239d5505b7b87bc854.tar.gz";
|
|
|
|
|
sha256 = "0panx24sqcvx52wza02zsxmpkhg6xld7hklrv7dybc59akqm2ira";
|
|
|
|
|
});
|
|
|
|
|
# the last successful build of nixpkgs-unstable as of 2021-11-18
|
|
|
|
|
# the last successful build of nixpkgs-unstable as of 2022-02-10
|
|
|
|
|
nixpkgs = import (builtins.fetchTarball {
|
|
|
|
|
url = "https://github.com/NixOS/nixpkgs/archive/7fad01d9d5a3f82081c00fb57918d64145dc904c.tar.gz";
|
|
|
|
|
sha256 = "0g0jn8cp1f3zgs7xk2xb2vwa44gb98qlp7k0dvigs0zh163c2kim";
|
|
|
|
|
url = "https://github.com/NixOS/nixpkgs/archive/1882c6b7368fd284ad01b0a5b5601ef136321292.tar.gz";
|
|
|
|
|
sha256 = "0zg7ak2mcmwzi2kg29g4v9fvbvs0viykjsg2pwaphm1fi13s7s0i";
|
|
|
|
|
}) { overlays = [ rustOverlay ]; };
|
|
|
|
|
# commit before python36 was removed
|
|
|
|
|
python36nixpkgs = import (builtins.fetchTarball {
|
|
|
|
@ -28,7 +28,7 @@ let
|
|
|
|
|
${nixpkgs.patchelf}/bin/patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$out"
|
|
|
|
|
chmod -w $out
|
|
|
|
|
'';
|
|
|
|
|
rustStable = nixpkgs.rust-bin.stable."1.57.0".minimal.override {
|
|
|
|
|
rustStable = nixpkgs.rust-bin.stable."1.58.1".minimal.override {
|
|
|
|
|
targets = [
|
|
|
|
|
"thumbv7em-none-eabihf" # TT
|
|
|
|
|
"thumbv7m-none-eabi" # T1
|
|
|
|
@ -38,7 +38,7 @@ let
|
|
|
|
|
extensions = [ "clippy" ];
|
|
|
|
|
};
|
|
|
|
|
gcc = nixpkgs.gcc11;
|
|
|
|
|
llvmPackages = nixpkgs.llvmPackages_12;
|
|
|
|
|
llvmPackages = nixpkgs.llvmPackages_13;
|
|
|
|
|
# see pyright/README.md for update procedure
|
|
|
|
|
pyright = nixpkgs.callPackage ./pyright {};
|
|
|
|
|
# HWI tests need https://github.com/bitcoin/bitcoin/pull/22558
|
|
|
|
@ -60,9 +60,10 @@ stdenvNoCC.mkDerivation ({
|
|
|
|
|
bitcoind
|
|
|
|
|
# install other python versions for tox testing
|
|
|
|
|
# NOTE: running e.g. "python3" in the shell runs the first version in the following list,
|
|
|
|
|
# and poetry uses the default version (currently 3.8)
|
|
|
|
|
python38
|
|
|
|
|
# and poetry uses the default version (currently 3.9)
|
|
|
|
|
python39
|
|
|
|
|
python310
|
|
|
|
|
python38
|
|
|
|
|
python37
|
|
|
|
|
python36nixpkgs.python36
|
|
|
|
|
] ++ [
|
|
|
|
|