diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/sql/postgresql/ext/pgsql-http.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/sql/postgresql/ext/pgsql-http.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/sql/postgresql/ext/pgsql-http.nix b/nixpkgs/pkgs/servers/sql/postgresql/ext/pgsql-http.nix new file mode 100644 index 000000000000..a0ef596aaded --- /dev/null +++ b/nixpkgs/pkgs/servers/sql/postgresql/ext/pgsql-http.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, fetchFromGitHub, curl, postgresql }: + +stdenv.mkDerivation rec { + pname = "pgsql-http"; + version = "1.6.0"; + + src = fetchFromGitHub { + owner = "pramsey"; + repo = "pgsql-http"; + rev = "v${version}"; + hash = "sha256-CPHfx7vhWfxkXsoKTzyFuTt47BPMvzi/pi1leGcuD60="; + }; + + buildInputs = [ curl postgresql ]; + + installPhase = '' + install -D -t $out/lib *.so + install -D -t $out/share/postgresql/extension *.sql + install -D -t $out/share/postgresql/extension *.control + ''; + + meta = with lib; { + description = "HTTP client for PostgreSQL, retrieve a web page from inside the database"; + homepage = "https://github.com/pramsey/pgsql-http"; + changelog = "https://github.com/pramsey/pgsql-http/releases/tag/v${version}"; + maintainers = [ maintainers.marsam ]; + platforms = postgresql.meta.platforms; + license = licenses.mit; + }; +} |