From 0309e44af577afb20b170401dc3e57b9cb98cc1f Mon Sep 17 00:00:00 2001 From: Kid <44045911+kidonng@users.noreply.github.com> Date: Sat, 30 Jul 2022 02:42:11 +0800 Subject: [PATCH] lychee: fix build on darwin --- pkgs/tools/networking/lychee/default.nix | 6 ++++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/networking/lychee/default.nix b/pkgs/tools/networking/lychee/default.nix index 5e788638e6e9..085cde3e75eb 100644 --- a/pkgs/tools/networking/lychee/default.nix +++ b/pkgs/tools/networking/lychee/default.nix @@ -1,8 +1,10 @@ { lib +, stdenv , rustPlatform , fetchFromGitHub , pkg-config , openssl +, Security }: rustPlatform.buildRustPackage rec { @@ -20,7 +22,8 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ pkg-config ]; - buildInputs = [ openssl ]; + buildInputs = [ openssl ] + ++ lib.optionals stdenv.isDarwin [ Security ]; # Disabled because they currently fail doCheck = false; @@ -30,6 +33,5 @@ rustPlatform.buildRustPackage rec { homepage = "https://github.com/lycheeverse/lychee"; license = with licenses; [ asl20 mit ]; maintainers = with maintainers; [ tuxinaut ]; - platforms = platforms.linux; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a978d6810c52..7288563a7849 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5710,7 +5710,9 @@ with pkgs; kramdown-asciidoc = callPackage ../tools/typesetting/kramdown-asciidoc { }; - lychee = callPackage ../tools/networking/lychee { }; + lychee = callPackage ../tools/networking/lychee { + inherit (darwin.apple_sdk.frameworks) Security; + }; magic-vlsi = callPackage ../applications/science/electronics/magic-vlsi { };