crane/default.nix
Ivan Petkov 6925af0d0b
Move all tests (except for formatting) out of flake checks
* `nix flake check` insists on evaluating all outputs for all systems,
  which seems to include evaluating build inputs needed for other
  systems (which gives us errors like `a 'aarch64-darwin' with features
  {} is required to build '...', but I am a 'x86_64-linux'`)
* To work around this we'll move all tests to their own directory
  outside of the flake's outputs, and manually invoke a test script to
  build them
2021-12-30 17:18:17 -08:00

12 lines
321 B
Nix

let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
locked = lock.nodes.flake-compat.locked;
compat = fetchTarball {
url = "https://github.com/${locked.owner}/${locked.repo}/archive/${locked.rev}.tar.gz";
sha256 = locked.narHash;
};
flake = import compat { src = ./.; };
in
flake.defaultNix