nixpkgs/pkgs/development/tools/sqldef/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
849 B
Nix
Raw Normal View History

2024-03-28 05:45:08 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
2023-02-07 10:12:11 +00:00
buildGoModule rec {
pname = "sqldef";
2024-04-27 14:55:29 +00:00
version = "0.17.7";
2023-02-07 10:12:11 +00:00
src = fetchFromGitHub {
owner = "k0kubun";
repo = "sqldef";
2023-02-07 10:12:11 +00:00
rev = "v${version}";
2024-04-27 14:55:29 +00:00
hash = "sha256-esLS7syckxdYpP3I2kKYXEFpTyV4+VQCiCV5cXJfexs=";
2023-02-07 10:12:11 +00:00
};
proxyVendor = true;
2024-04-27 14:55:29 +00:00
vendorHash = "sha256-hH8dje3ajG1KNi7jEkaEgzCGJuvrZiNhIBC0my0wljM=";
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
2023-02-07 10:12:11 +00:00
# The test requires a running database
doCheck = false;
meta = with lib; {
description = "Idempotent SQL schema management tool";
2024-03-28 05:45:08 +00:00
license = with licenses; [ mit /* for everything except parser */ asl20 /* for parser */ ];
2023-02-07 10:12:11 +00:00
homepage = "https://github.com/k0kubun/sqldef";
changelog = "https://github.com/k0kubun/sqldef/blob/v${version}/CHANGELOG.md";
2023-02-07 10:12:11 +00:00
maintainers = with maintainers; [ kgtkr ];
};
}