depot/pkgs/by-name/go/gobang/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

40 lines
864 B
Nix

{
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.hostPlatform.isDarwin [
CoreFoundation
Security
SystemConfiguration
];
meta = {
description = "Cross-platform TUI database management tool written in Rust";
homepage = "https://github.com/tako8ki/gobang";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ figsoda ];
};
}