Skip to content

Commit

Permalink
Merge pull request #2 from justinmoon/mac
Browse files Browse the repository at this point in the history
chore: make nix environment work on mac
  • Loading branch information
elsirion committed Apr 2, 2024
2 parents 3de5fcb + c121dcd commit 6c12544
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
outputs = { self, nixpkgs, flake-utils, flakebox }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
flakeboxLib = flakebox.lib.${system} { };
lib = pkgs.lib;
stdenv = pkgs.stdenv;

toolchainArgs = {
extraRustFlags = "--cfg tokio_unstable";
Expand Down Expand Up @@ -48,7 +53,11 @@
});
in
{
devShells = flakeboxLib.mkShells { };
devShells = flakeboxLib.mkShells {
nativeBuildInputs = [] ++ lib.optionals stdenv.isDarwin [
pkgs.darwin.apple_sdk.frameworks.SystemConfiguration
];
};

legacyPackages = packages;
packages.default = packages.fedimint-observer;
Expand Down

0 comments on commit 6c12544

Please sign in to comment.