forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kaniel Kirby
committed
Jun 16, 2024
1 parent
d64c825
commit abe27b5
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ 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"; | ||
}; | ||
} |