mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-23 08:22:41 +03:00
6925af0d0b
* `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
12 lines
321 B
Nix
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
|