Use dynamically linked openssl when running with nix

This commit is contained in:
bytedream 2023-08-16 17:26:03 +02:00
parent 31fe1460f1
commit d295a57f84
2 changed files with 6 additions and 3 deletions

6
flake.lock generated
View file

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1685866647, "lastModified": 1692128808,
"narHash": "sha256-4jKguNHY/edLYImB+uL8jKPL/vpfOvMmSlLAGfxSrnY=", "narHash": "sha256-Di1Zm/P042NuwThMiZNrtmaAjd4Tm2qBOKHX7xUOfMk=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a53a3bec10deef6e1cc1caba5bc60f53b959b1e8", "rev": "4ed9856be002a730234a1a1ed9dcd9dd10cbdb40",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -30,6 +30,9 @@
allowBuiltinFetchGit = true; allowBuiltinFetchGit = true;
}; };
buildNoDefaultFeatures = true;
buildFeatures = [ "openssl" ];
nativeBuildInputs = [ nativeBuildInputs = [
pkgs.pkg-config pkgs.pkg-config
] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [ ] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [