nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 9b45d7d2521693cbcf22d4ddd88351b2dc0465df
parent ffa65f7c2773aa2eef6b8f696e00da7e9ecc84a3
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Wed, 11 Aug 2021 22:14:55 +0300

stargazer: fix build on darwin

Diffstat:
Mpkgs/default.nix | 4+++-
Mpkgs/gemini/stargazer/default.nix | 4+++-
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -187,7 +187,9 @@ lib.makeScope newScope ( kineto = callPackage ./gemini/kineto { }; satellite = callPackage ./gemini/satellite { }; shavit = callPackage ./gemini/shavit { }; - stargazer = callPackage ./gemini/stargazer { }; + stargazer = callPackage ./gemini/stargazer { + inherit (darwin.apple_sdk.frameworks) Security; + }; telescope = callPackage ./gemini/telescope { }; ### GIS diff --git a/pkgs/gemini/stargazer/default.nix b/pkgs/gemini/stargazer/default.nix @@ -1,4 +1,4 @@ -{ lib, rustPlatform, fetchFromSourcehut, scdoc, installShellFiles }: +{ lib, stdenv, rustPlatform, fetchFromSourcehut, Security, scdoc, installShellFiles }: rustPlatform.buildRustPackage rec { pname = "stargazer"; @@ -15,6 +15,8 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ scdoc installShellFiles ]; + buildInputs = lib.optional stdenv.isDarwin Security; + postBuild = '' scdoc < doc/stargazer.scd > stargazer.1 scdoc < doc/stargazer-ini.scd > stargazer.ini.5