1{ lib
2, rustPlatform
3, fetchFromGitHub
4, stdenv
5, CoreFoundation
6, Security
7, SystemConfiguration
8}:
9
10rustPlatform.buildRustPackage rec {
11 pname = "gobang";
12 version = "0.1.0-alpha.5";
13
14 src = fetchFromGitHub {
15 owner = "tako8ki";
16 repo = pname;
17 rev = "v${version}";
18 sha256 = "02glb3hlprpdc72ji0248a7g0vr36yxr0gfbbms2m25v251dyaa6";
19 };
20
21 cargoSha256 = "sha256-Tiefet5gLpiuYY6Scg5fjnaPiZfVl5Gy2oZFdhgNRxY=";
22
23 buildInputs = lib.optionals stdenv.isDarwin [
24 CoreFoundation
25 Security
26 SystemConfiguration
27 ];
28
29 meta = with lib; {
30 description = "A cross-platform TUI database management tool written in Rust";
31 homepage = "https://github.com/tako8ki/gobang";
32 license = licenses.mit;
33 maintainers = with maintainers; [ figsoda ];
34 };
35}