diff --git a/pkgs/development/tools/pgroll/default.nix b/pkgs/development/tools/pgroll/default.nix new file mode 100644 index 000000000000..d3670ef96d13 --- /dev/null +++ b/pkgs/development/tools/pgroll/default.nix @@ -0,0 +1,28 @@ +{ buildGoModule +, fetchFromGitHub +, lib +}: + +buildGoModule rec { + pname = "pgroll"; + version = "0.5.0"; + + src = fetchFromGitHub { + owner = "xataio"; + repo = "pgroll"; + rev = "v${version}"; + hash = "sha256-VYGwIJsPVilFxvglj+E7H9NpqUV1CV/ggBP3gFleWIA="; + }; + + vendorHash = "sha256-Fz+o1jSoMfqKYo1I7VUFqbhBEgcoQEx7aYsmzCLsbnI="; + + # Tests require a running docker daemon + doCheck = false; + + meta = with lib; { + description = "PostgreSQL zero-downtime migrations made easy"; + license = licenses.asl20; + homepage = "https://github.com/xataio/pgroll"; + maintainers = with maintainers; [ ilyakooo0 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 710ded329967..a0d59f09a08f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19443,6 +19443,8 @@ with pkgs; pgcli = with pkgs.python3Packages; toPythonApplication pgcli; + pgroll = callPackage ../development/tools/pgroll{ } ; + picotool = callPackage ../development/tools/picotool { }; planus = callPackage ../development/tools/misc/planus { };