wiki-tui: fix build on darwin

This commit is contained in:
legendofmiracles 2021-11-05 14:30:48 -06:00
parent 458ea7e649
commit 8c220df794
No known key found for this signature in database
GPG key ID: 19B082B3DEFE5451
2 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ lib, rustPlatform, fetchFromGitHub, ncurses, openssl, pkg-config, nix-update-script }:
{ lib, rustPlatform, fetchFromGitHub, ncurses, openssl, pkg-config, stdenv, nix-update-script, Security }:
rustPlatform.buildRustPackage rec {
pname = "wiki-tui";
@ -11,7 +11,7 @@ rustPlatform.buildRustPackage rec {
sha256 = "sha256-aCfYb5UvlWbBvBlwNjVIbOJlEV2b3+FD0qKO+9h5Nos=";
};
buildInputs = [ ncurses openssl ];
buildInputs = [ ncurses openssl ] ++ lib.optional stdenv.isDarwin Security;
nativeBuildInputs = [ pkg-config ];

View file

@ -32438,7 +32438,9 @@ with pkgs;
wiki-js = callPackage ../servers/web-apps/wiki-js { };
wiki-tui = callPackage ../misc/wiki-tui { };
wiki-tui = callPackage ../misc/wiki-tui {
inherit (darwin.apple_sdk.frameworks) Security;
};
winePackagesFor = wineBuild: lib.makeExtensible (self: with self; {
callPackage = newScope self;