depot/third_party/nixpkgs/pkgs/by-name/la/lazysql/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

31 lines
802 B
Nix

{ lib
, stdenv
, buildGoModule
, fetchFromGitHub
, xorg ? null
, darwin ? null
}:
buildGoModule rec {
pname = "lazysql";
version = "0.1.8";
src = fetchFromGitHub {
owner = "jorgerojas26";
repo = "lazysql";
rev = "v${version}";
hash = "sha256-yPf9/SM4uET/I8FsDU1le9JgxELu0DR9k7mv8PnBwvQ=";
};
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";
};
}