5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
47 lines
984 B
Nix
47 lines
984 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, stdenv
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "goose";
|
|
version = "3.14.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pressly";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-4WBYfxEmEuFZM+Qt2miw6GxuV5B2nc4XXeyDQi1IISg=";
|
|
};
|
|
|
|
proxyVendor = true;
|
|
vendorHash = "sha256-zsqulNAPcGVp6+ClYtRwM5U6YwRak4ttSLbgPWDxtbI=";
|
|
|
|
# end-to-end tests require a docker daemon
|
|
postPatch = ''
|
|
rm -r tests/e2e
|
|
rm -r tests/gomigrations
|
|
rm -r tests/vertica
|
|
'';
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=main.gooseVersion=${version}"
|
|
];
|
|
|
|
checkFlags = [
|
|
# these also require a docker daemon
|
|
"-skip=TestClickUpDown|TestClickHouseFirstThree"
|
|
];
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
meta = with lib; {
|
|
description = "Database migration tool which supports SQL migrations and Go functions";
|
|
homepage = "https://pressly.github.io/goose/";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ yuka ];
|
|
};
|
|
}
|