31 lines
849 B
Nix
31 lines
849 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "sqldef";
|
|
version = "0.17.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "k0kubun";
|
|
repo = "sqldef";
|
|
rev = "v${version}";
|
|
hash = "sha256-iEQHrGGXfN/id4aV96MN6WKUl5XGL17u8mlPJKc6cvg=";
|
|
};
|
|
|
|
proxyVendor = true;
|
|
|
|
vendorHash = "sha256-8fKJxnjLIWzWsLx/p9tRb/un63/QgJJzMb4/Y4DSZdY=";
|
|
|
|
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 ];
|
|
};
|
|
}
|