Skip to content

Commit

Permalink
add mev package as overlay and add missing build dep on linxu
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexstokes committed Sep 29, 2023
1 parent b43d864 commit 9463d28
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
mev = pkgs.callPackage ./nix/mev.nix { inherit pkgs; crane = craneLib; };
in
{
packages.mev = mev;
devShells.default = import ./shell.nix { inherit pkgs rustToolchain; };
overlays.default = _: _: {
inherit mev;
};
packages.mev = mev;
});
}
4 changes: 3 additions & 1 deletion nix/mev.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ let
commonArgs = {
pname = "mev-rs";
src = crane.cleanCargoSource (crane.path ../.);
buildInputs = [ ] ++ lib.optionals pkgs.stdenv.isDarwin [
buildInputs = lib.optionals pkgs.stdenv.isLinux [
openssl
] ++ lib.optionals pkgs.stdenv.isDarwin [
darwin.apple_sdk.frameworks.Network
];
};
Expand Down

0 comments on commit 9463d28

Please sign in to comment.