From 669fa0790caada7527de515be1ff0ca213cde00e Mon Sep 17 00:00:00 2001 From: figsoda Date: Sat, 30 Oct 2021 12:52:23 -0400 Subject: [PATCH] piping-server-rust: fix darwin build --- pkgs/servers/piping-server-rust/default.nix | 4 +++- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/piping-server-rust/default.nix b/pkgs/servers/piping-server-rust/default.nix index f37dbee8eb39..10434c34807c 100644 --- a/pkgs/servers/piping-server-rust/default.nix +++ b/pkgs/servers/piping-server-rust/default.nix @@ -1,4 +1,4 @@ -{ lib, rustPlatform, fetchFromGitHub }: +{ lib, rustPlatform, fetchFromGitHub, stdenv, Security }: rustPlatform.buildRustPackage rec { pname = "piping-server-rust"; @@ -13,6 +13,8 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "sha256-SDAxXYX51/4S7zRTdNZK9uSjKHKrAXpDJgRRDyu6qug="; + buildInputs = lib.optional stdenv.isDarwin Security; + meta = with lib; { description = "Infinitely transfer between every device over pure HTTP with pipes or browsers"; homepage = "https://github.com/nwtgck/piping-server-rust"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fe53386974cb..16039d2bd348 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8504,7 +8504,9 @@ with pkgs; pinnwand = callPackage ../servers/pinnwand { }; - piping-server-rust = callPackage ../servers/piping-server-rust { }; + piping-server-rust = callPackage ../servers/piping-server-rust { + inherit (darwin.apple_sdk.frameworks) Security; + }; pirate-get = callPackage ../tools/networking/pirate-get { };