nixpkgs/pkgs/servers/sql/postgresql/ext/tds_fdw.nix
Steve Chávez 28d49431c0 tds_fdw: init a 1.0.8
* tds_fdw: init a 1.0.8

* Use pname
2019-03-12 19:38:58 -07:00

30 lines
889 B
Nix

{ stdenv, fetchFromGitHub, postgresql, freetds }:
stdenv.mkDerivation rec {
pname = "tds_fdw";
version = "1.0.8";
buildInputs = [ postgresql freetds ];
src = fetchFromGitHub {
owner = "tds-fdw";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "0dlv1imiy773yplqqpl26xka65bc566k2x81wkrbvwqagnwvcai2";
};
installPhase = ''
install -D tds_fdw.so -t $out/lib
install -D sql/tds_fdw--${version}.sql -t $out/share/extension
install -D tds_fdw.control -t $out/share/extension
'';
meta = with stdenv.lib; {
description = "A PostgreSQL foreign data wrapper to connect to TDS databases (Sybase and Microsoft SQL Server)";
homepage = https://github.com/tds-fdw/tds_fdw;
maintainers = [ maintainers.steve-chavez ];
platforms = platforms.linux;
license = licenses.postgresql;
};
}