Merge pull request #140400 from figsoda/fix-gobang

gobang: fix darwin build
This commit is contained in:
Mario Rodas 2021-10-03 15:08:30 -05:00 committed by GitHub
commit f9897583db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

@ -11798,7 +11798,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 { };