Skip to content

Commit

Permalink
fix nix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
blesswinsamuel committed Jan 12, 2024
1 parent 4fb85d2 commit abefd00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@

# Helper to provide system-specific attributes
forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f {
inherit system;
pkgs = import nixpkgs { inherit system; };
});
in
{
packages = forAllSystems ({ pkgs }: {
packages = forAllSystems ({ system, pkgs }: {
default = pkgs.rustPlatform.buildRustPackage {
name = "router-monitor";
src = ./.;
buildInputs = [ pkgs.darwin.apple_sdk.frameworks.Security pkgs.pkg-config pkgs.openssl ];
buildInputs = [ pkgs.pkg-config pkgs.openssl ] ++ (nixpkgs.lib.optionals (pkgs.stdenv.isDarwin) [ pkgs.darwin.apple_sdk.frameworks.Security ]);
cargoLock = {
lockFile = ./Cargo.lock;
};
Expand Down

0 comments on commit abefd00

Please sign in to comment.