summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorspore <spore2050@gmail.com>2024-01-29 18:47:53 +0800
committerGitHub <noreply@github.com>2024-01-29 10:47:53 +0000
commit1b3ff2dd78dc2e618c6640462635d255e117e8c6 (patch)
tree4040036e702abf2669592cc06f17f1377f388ea8 /flake.nix
parentead94a64df19c0ae2dcdf6d46b41d8ed3de7a216 (diff)
Add `openssl` to dependencies in `flake.nix` (#3285)
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix19
1 files changed, 16 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix
index 627ee307..c7187339 100644
--- a/flake.nix
+++ b/flake.nix
@@ -49,12 +49,18 @@
commonCraneArgs = {
inherit src pname version;
- buildInputs = optionals pkgs.stdenv.isDarwin [
+ buildInputs = (optionals pkgs.stdenv.isDarwin [
pkgs.darwin.apple_sdk.frameworks.CoreServices
pkgs.libiconv
+ ]) ++ [
+ pkgs.openssl
];
- nativeBuildInputs = [ pkgs.installShellFiles ];
+ nativeBuildInputs = [
+ pkgs.installShellFiles
+ pkgs.pkg-config
+ pkgs.openssl.dev
+ ];
};
# Derivation with just the dependencies, so we don't have to keep
@@ -105,9 +111,16 @@
cargo
];
- buildInputs = lib.optionals pkgs.stdenv.isDarwin [
+ buildInputs = (lib.optionals pkgs.stdenv.isDarwin [
pkgs.darwin.apple_sdk.frameworks.CoreServices
pkgs.libiconv
+ ]) ++ [
+ pkgs.openssl
+ ];
+
+ nativeBuildInputs = [
+ pkgs.pkg-config
+ pkgs.openssl.dev
];
};
};