commit 7264ccf5a65f7edf3be8edd0f71ccbbc6c06bbf6
parent 4bc2dc2cce27b785991a6367aa990480ab2f7f50
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Tue, 25 Jan 2022 22:00:30 +0300
gemserv: fix on darwin
Diffstat:
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -136,7 +136,9 @@ lib.makeScope newScope (
gemini-ipfs-gateway = callPackage ./gemini/gemini-ipfs-gateway { };
geminid = callPackage ./gemini/geminid { };
gemreader = callPackage ./gemini/gemreader { };
- gemserv = callPackage ./gemini/gemserv { };
+ gemserv = callPackage ./gemini/gemserv {
+ inherit (darwin.apple_sdk.frameworks) Security;
+ };
gloggery = callPackage ./gemini/gloggery { };
gmi2html = callPackage ./gemini/gmi2html {
zig = pkgs.zig_0_8_1;
diff --git a/pkgs/gemini/gemserv/default.nix b/pkgs/gemini/gemserv/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, rustPlatform, fetchFromSourcehut, pkg-config, openssl }:
+{ lib, stdenv, rustPlatform, fetchFromSourcehut, pkg-config, openssl, Security }:
rustPlatform.buildRustPackage rec {
pname = "gemserv";
@@ -15,7 +15,7 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config ];
- buildInputs = [ openssl ];
+ buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
postInstall = ''
install -Dm644 config.toml -t $out/share/gemserv