diff options
author | Yureka <yuka@yuka.dev> | 2023-05-18 00:51:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-18 00:51:12 +0200 |
commit | 1d77f3b72756ca36f16440c59e6b89a957908647 (patch) | |
tree | 6164cfcc67122cfd6882d6ae4110484d9973c872 /pkgs/tools/misc/goose | |
parent | deb36f65f0667638e2d09fe58393fd7193b4ee99 (diff) |
goose: init at 3.11.2 (#232485)
Diffstat (limited to 'pkgs/tools/misc/goose')
-rw-r--r-- | pkgs/tools/misc/goose/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/tools/misc/goose/default.nix b/pkgs/tools/misc/goose/default.nix new file mode 100644 index 0000000000000..46fa2f2d2ccf3 --- /dev/null +++ b/pkgs/tools/misc/goose/default.nix @@ -0,0 +1,47 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, stdenv +}: + +buildGoModule rec { + pname = "goose"; + version = "3.11.2"; + + src = fetchFromGitHub { + owner = "pressly"; + repo = pname; + rev = "v${version}"; + hash = "sha256-D/mWzDsGNftl0ldNpWt/98b2o5fWk4Jxb5zEIAqTPs0="; + }; + + proxyVendor = true; + vendorHash = "sha256-6KqYafXtTLmiYrKabuPaszzkN5P3uZDl4LWo1tat/Bk="; + + # 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 ]; + }; +} |