gobang: unbreak, modernize

This commit is contained in:
Leah Amelia Chen
2024-05-23 23:09:20 +02:00
parent 4e0a31f582
commit a1090bebdc
4 changed files with 1593 additions and 39 deletions
+40
View File
@@ -0,0 +1,40 @@
{
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
darwin,
}:
let
version = "0.1.0-alpha.5";
in
rustPlatform.buildRustPackage {
pname = "gobang";
inherit version;
src = fetchFromGitHub {
owner = "tako8ki";
repo = "gobang";
rev = "v${version}";
hash = "sha256-RinfQhG7iCp0Xcs9kLs3I2/wjkJEgCjFYe3mS+FY9Ak=";
};
cargoPatches = [ ./update-sqlx.patch ];
cargoHash = "sha256-3A3bf7iq1acsWttKmcJmxWM74B0qUIcROBAkjDZFKxE=";
buildInputs =
with darwin.apple_sdk.frameworks;
lib.optionals stdenv.isDarwin [
CoreFoundation
Security
SystemConfiguration
];
meta = {
description = "A cross-platform TUI database management tool written in Rust";
homepage = "https://github.com/tako8ki/gobang";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ figsoda ];
};
}
File diff suppressed because it is too large Load Diff
@@ -1,35 +0,0 @@
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, CoreFoundation
, Security
, SystemConfiguration
}:
rustPlatform.buildRustPackage rec {
pname = "gobang";
version = "0.1.0-alpha.5";
src = fetchFromGitHub {
owner = "tako8ki";
repo = pname;
rev = "v${version}";
sha256 = "02glb3hlprpdc72ji0248a7g0vr36yxr0gfbbms2m25v251dyaa6";
};
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";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}
-4
View File
@@ -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 { };