gobang: unbreak, modernize
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user