depot/third_party/nixpkgs/pkgs/development/tools/sqldef/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

30 lines
850 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "sqldef";
version = "0.17.14";
src = fetchFromGitHub {
owner = "k0kubun";
repo = "sqldef";
rev = "v${version}";
hash = "sha256-APitl7BZPmMXmW1e45FE3Z6BaWd8pNeL0QQomQb7wgg=";
};
proxyVendor = true;
vendorHash = "sha256-cMRzDqsnQwZTSjroaXOgN4uOFCxVb2x7FT57VfN9qhk=";
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
# The test requires a running database
doCheck = false;
meta = with lib; {
description = "Idempotent SQL schema management tool";
license = with licenses; [ mit /* for everything except parser */ asl20 /* for parser */ ];
homepage = "https://github.com/k0kubun/sqldef";
changelog = "https://github.com/k0kubun/sqldef/blob/v${version}/CHANGELOG.md";
maintainers = with maintainers; [ kgtkr ];
};
}