EspressoSystems / HotShot

http://hotshot.docs.espressosys.com/
MIT License
122 stars 31 forks source link

[Tracking] aarch64 issues #241

Closed VictorKoenders closed 2 years ago

VictorKoenders commented 2 years ago

On macos:

phaselock on  main [$] is 📦 v0.0.7 via 🦀 v1.61.0 
❯ nix develop --extra-experimental-features "nix-command flakes" .#perfShell
error: Package ‘heaptrack-1.3.0’ in /nix/store/hg6aql6bh3714z2mwknsw6p56kzrhnhx-source/pkgs/development/tools/profiling/heaptrack/default.nix:25 is not supported on ‘aarch64-darwin’, refusing to evaluate.

       a) To temporarily allow packages that are unsupported for this system, you can use an environment variable
          for a single invocation of the nix tools.

            $ export NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1

        Note: For `nix shell`, `nix build`, `nix develop` or any other Nix 2.4+
        (Flake) command, `--impure` must be passed in order to read this
        environment variable.

       b) For `nixos-rebuild` you can set
         { nixpkgs.config.allowUnsupportedSystem = true; }
       in configuration.nix to override this.

       c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
         { allowUnsupportedSystem = true; }
       to ~/.config/nixpkgs/config.nix.
(use '--show-trace' to show detailed location information)
DieracDelta commented 2 years ago

oops, I forgot to disable this on macos. heaptrack is a linux only tool. Can probably be fixed with:

 buildInputs = with pkgs; [ cargo-flamegraph fd cargo-llvm-cov fenixStable ripgrep valgrind ] ++ buildDeps ++ lib.optionals stdenv.isLinux [ heapstack_pkgs.heaptrack ];