Commit a1090beb authored by Leah Amelia Chen's avatar Leah Amelia Chen
Browse files

gobang: unbreak, modernize

parent 4e0a31f5
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, CoreFoundation
, Security
, SystemConfiguration
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  stdenv,
  darwin,
}:

rustPlatform.buildRustPackage rec {
  pname = "gobang";
let
  version = "0.1.0-alpha.5";
in
rustPlatform.buildRustPackage {
  pname = "gobang";
  inherit version;

  src = fetchFromGitHub {
    owner = "tako8ki";
    repo = pname;
    repo = "gobang";
    rev = "v${version}";
    sha256 = "02glb3hlprpdc72ji0248a7g0vr36yxr0gfbbms2m25v251dyaa6";
    hash = "sha256-RinfQhG7iCp0Xcs9kLs3I2/wjkJEgCjFYe3mS+FY9Ak=";
  };

  cargoSha256 = "sha256-Tiefet5gLpiuYY6Scg5fjnaPiZfVl5Gy2oZFdhgNRxY=";
  cargoPatches = [ ./update-sqlx.patch ];

  cargoHash = "sha256-3A3bf7iq1acsWttKmcJmxWM74B0qUIcROBAkjDZFKxE=";

  buildInputs = lib.optionals stdenv.isDarwin [
  buildInputs =
    with darwin.apple_sdk.frameworks;
    lib.optionals stdenv.isDarwin [
      CoreFoundation
      Security
      SystemConfiguration
    ];

  meta = with lib; {
  meta = {
    description = "A cross-platform TUI database management tool written in Rust";
    homepage = "https://github.com/tako8ki/gobang";
    license = licenses.mit;
    maintainers = with maintainers; [ figsoda ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ figsoda ];
  };
}
+1553 −0

File added.

Preview size limit exceeded, changes collapsed.

+0 −4
Original line number Diff line number Diff line
@@ -16024,10 +16024,6 @@ with pkgs;
  gocover-cobertura = callPackage ../development/tools/gocover-cobertura { };
  gobang = callPackage ../development/tools/database/gobang {
    inherit (darwin.apple_sdk.frameworks) CoreFoundation Security SystemConfiguration;
  };
  goblob = callPackage ../tools/security/goblob { };
  gogetdoc = callPackage ../development/tools/gogetdoc { };