Skip to content

Commit

Permalink
fix: make cli build on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
thecaralice committed Oct 15, 2024
1 parent 3589659 commit 9a4a2b1
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions packages/cli.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
stdenv,
lib,
libiconv,
pkg-config,
openssl,
}:
let
commonArgs = rec {
Expand All @@ -17,13 +19,16 @@ let
hash = "sha256-+O4F9vTqYg4Eju0RBIyQ6aIw8Wb33bchSygUpunfFBs=";
};
strictDeps = true;
buildInputs = lib.optionals stdenv.isDarwin (
with darwin.apple_sdk.frameworks;
[
SystemConfiguration
libiconv
]
);
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
buildInputs =
lib.optionals stdenv.isDarwin (
with darwin.apple_sdk.frameworks;
[
SystemConfiguration
libiconv
]
)
++ lib.optionals stdenv.isLinux [ openssl.dev ];
};
cargoArtifacts = craneLib.buildDepsOnly commonArgs;
totalArgs = commonArgs // {
Expand Down

0 comments on commit 9a4a2b1

Please sign in to comment.