diff options
-rw-r--r-- | flake.nix | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -22,7 +22,7 @@ | |||
22 | let | 22 | let |
23 | inherit (import-cargo.builders) importCargo; | 23 | inherit (import-cargo.builders) importCargo; |
24 | 24 | ||
25 | supportedSystems = [ "x86_64-linux" ]; | 25 | supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ]; |
26 | forAllSystems = nixpkgs.lib.genAttrs supportedSystems; | 26 | forAllSystems = nixpkgs.lib.genAttrs supportedSystems; |
27 | nixpkgsFor = forAllSystems (system: | 27 | nixpkgsFor = forAllSystems (system: |
28 | import nixpkgs { | 28 | import nixpkgs { |
@@ -58,7 +58,7 @@ | |||
58 | (importCargo { lockFile = ./Cargo.lock; inherit pkgs; }).cargoHome | 58 | (importCargo { lockFile = ./Cargo.lock; inherit pkgs; }).cargoHome |
59 | rust | 59 | rust |
60 | cargo | 60 | cargo |
61 | ]; | 61 | ] ++ lib.optionals stdenv.isDarwin [ libiconv ]; |
62 | buildPhase = '' | 62 | buildPhase = '' |
63 | cargo build -p statix --all-features --release --offline | 63 | cargo build -p statix --all-features --release --offline |
64 | ''; | 64 | ''; |