depot/third_party/nixpkgs/pkgs/by-name/la/lazysql/package.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

31 lines
828 B
Nix

{ lib
, stdenv
, buildGoModule
, fetchFromGitHub
, xorg ? null
, darwin ? null
}:
buildGoModule rec {
pname = "lazysql";
version = "0.2.9";
src = fetchFromGitHub {
owner = "jorgerojas26";
repo = "lazysql";
rev = "v${version}";
hash = "sha256-6aJrLkmebOhLrnVhl9cnbW1ZBt0vq8lR7Lhz9nPFr8Q=";
};
vendorHash = "sha256-celee8uyoirX+vtAww2iQJtRwJEHyfHL2mZA2muSRiQ=";
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ xorg.libX11 ] ++ lib.optionals stdenv.hostPlatform.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";
};
}