From 276281b07a6c6e5c639602e21cd4eaf3ab05fe4d Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Wed, 3 Nov 2021 13:40:30 -0400 Subject: [PATCH] Add optional openssl dep on linux --- flake.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flake.nix b/flake.nix index 6b812e1..48b7e3e 100644 --- a/flake.nix +++ b/flake.nix @@ -16,6 +16,11 @@ root = ./.; cargoBuildOptions = opts: opts ++ [ "--package youmubot" ]; + + nativeBuildInputs = nixpkgs.lib.optionals (nixpkgs.lib.strings.hasSuffix "linux" system) (with pkgs; [ + pkg-config + openssl + ]); }; defaultPackage = packages.youmubot;