Skip to content

Instantly share code, notes, and snippets.

@betawaffle
Created May 28, 2020 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save betawaffle/0f3c0895b7e402345e27940b81f5b85a to your computer and use it in GitHub Desktop.
Save betawaffle/0f3c0895b7e402345e27940b81f5b85a to your computer and use it in GitHub Desktop.
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "sqlc";
version = "1.3.0";
src = fetchFromGitHub {
owner = "kyleconroy";
repo = pname;
rev = "v${version}";
sha256 = "1cj73zjbb1clc8c0dk8gzhzfycch5c6qfgzixc19kcpcq16sifyl";
};
vendorSha256 = "0y4n6w3dhplmkcd5lym7cngfn0h017sdzs2rw5bcabfyiyzm6dfa";
subPackages = [ "cmd/${pname}" ];
meta = with lib; {
description = "Generate type-safe Go from SQL";
homepage = https://sqlc.dev;
license = licenses.mit;
platforms = platforms.linux ++ platforms.darwin;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment