gobang: fix darwin build

This commit is contained in:
figsoda 2021-10-03 13:24:22 -04:00
parent 441e405c77
commit ebebfb4bf0
2 changed files with 17 additions and 2 deletions

View File

@ -1,4 +1,11 @@
{ lib, rustPlatform, fetchFromGitHub }:
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, CoreFoundation
, Security
, SystemConfiguration
}:
rustPlatform.buildRustPackage rec {
pname = "gobang";
@ -13,6 +20,12 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-Tiefet5gLpiuYY6Scg5fjnaPiZfVl5Gy2oZFdhgNRxY=";
buildInputs = lib.optionals stdenv.isDarwin [
CoreFoundation
Security
SystemConfiguration
];
meta = with lib; {
description = "A cross-platform TUI database management tool written in Rust";
homepage = "https://github.com/tako8ki/gobang";

View File

@ -11796,7 +11796,9 @@ with pkgs;
go-junit-report = callPackage ../development/tools/go-junit-report { };
gobang = callPackage ../development/tools/database/gobang { };
gobang = callPackage ../development/tools/database/gobang {
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security SystemConfiguration;
};
gogetdoc = callPackage ../development/tools/gogetdoc { };