-
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.
This commit introduces several changes to modernize the project: - Adds `tools/nix/pks/sqlc.nix` for SQLC package. - Updates `cmd/quantm/queues.go` with new core and hooks queue setups. - Updates `flake.nix` and `flake.lock` with `gomod2nix` and renamed `breu` input.
- Loading branch information
1 parent
49b6b5e
commit ee753ef
Showing
5 changed files
with
111 additions
and
20 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,45 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
buildGoModule, | ||
fetchFromGitHub, | ||
installShellFiles, | ||
}: | ||
buildGoModule rec { | ||
pname = "sqlc"; | ||
version = "1.27.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "sqlc-dev"; | ||
repo = "sqlc"; | ||
rev = "v${version}"; | ||
hash = "sha256-wxQ+YPsDX0Z6B8whlQ/IaT2dRqapPL8kOuFEc6As1rU="; | ||
}; | ||
|
||
proxyVendor = true; | ||
vendorHash = "sha256-ndOw3uShF5TngpxYNumoK3H3R9v4crfi5V3ZCoSqW90="; | ||
|
||
subPackages = ["cmd/sqlc"]; | ||
|
||
nativeBuildInputs = [installShellFiles]; | ||
|
||
ldflags = [ | ||
"-s" | ||
"-w" | ||
]; | ||
|
||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' | ||
installShellCompletion --cmd sqlc \ | ||
--bash <($out/bin/sqlc completion bash) \ | ||
--fish <($out/bin/sqlc completion fish) \ | ||
--zsh <($out/bin/sqlc completion zsh) | ||
''; | ||
|
||
meta = { | ||
description = "Generate type-safe code from SQL"; | ||
homepage = "https://sqlc.dev/"; | ||
license = lib.licenses.mit; | ||
maintainers = with lib.maintainers; [aaronjheng]; | ||
mainProgram = "sqlc"; | ||
}; | ||
} |