2024-06-20 14:57:18 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, xorg ? null
|
|
|
|
, darwin ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "lazysql";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.2.3";
|
2024-06-20 14:57:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jorgerojas26";
|
|
|
|
repo = "lazysql";
|
|
|
|
rev = "v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-7aHzqgRtJvGueCmB87uJkFgkphfPj/owAz0Q2o3OU88=";
|
2024-06-20 14:57:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorHash = "sha256-tgD6qoCVC1ox15VPJWVvhe4yg3R81ktMuW2dsaU69rY=";
|
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isLinux [ xorg.libX11 ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A cross-platform TUI database management tool written in Go";
|
|
|
|
homepage = "https://github.com/jorgerojas26/lazysql";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kanielrkirby ];
|
|
|
|
mainProgram = "lazysql";
|
|
|
|
};
|
|
|
|
}
|