From 9a18b6c073d80d6a4ba3689201f89ad167e35e94 Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Sun, 21 May 2023 10:58:16 +0400 Subject: [PATCH] stargazer: enable on darwin --- pkgs/servers/gemini/stargazer/default.nix | 5 ++++- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/gemini/stargazer/default.nix b/pkgs/servers/gemini/stargazer/default.nix index fdcd31777cf0..4dc0ba5cc0f5 100644 --- a/pkgs/servers/gemini/stargazer/default.nix +++ b/pkgs/servers/gemini/stargazer/default.nix @@ -1,8 +1,10 @@ { lib +, stdenv , fetchFromSourcehut , rustPlatform , installShellFiles , scdoc +, Security }: rustPlatform.buildRustPackage rec { @@ -22,6 +24,8 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ installShellFiles scdoc ]; + buildInputs = lib.optional stdenv.isDarwin Security; + postInstall = '' scdoc < doc/stargazer.scd > stargazer.1 scdoc < doc/stargazer-ini.scd > stargazer.ini.5 @@ -36,6 +40,5 @@ rustPlatform.buildRustPackage rec { license = licenses.agpl3Plus; changelog = "https://git.sr.ht/~zethra/stargazer/refs/${version}"; maintainers = with maintainers; [ gaykitty ]; - platforms = platforms.linux; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c6ad14c09721..8b6ba4b1bd58 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1697,7 +1697,9 @@ with pkgs; speedtest-rs = callPackage ../tools/networking/speedtest-rs { }; - stargazer = callPackage ../servers/gemini/stargazer { }; + stargazer = callPackage ../servers/gemini/stargazer { + inherit (darwin.apple_sdk.frameworks) Security; + }; steamtinkerlaunch = callPackage ../tools/games/steamtinkerlaunch { };