tds_fdw: init a 1.0.8

* tds_fdw: init a 1.0.8

* Use pname
This commit is contained in:
Steve Chávez 2019-03-12 21:38:58 -05:00 committed by Ryan Mulligan
parent 8d0b3d5e4f
commit 28d49431c0
3 changed files with 37 additions and 1 deletions

View File

@ -4469,6 +4469,11 @@
github = "stesie";
name = "Stefan Siegl";
};
steve-chavez = {
email = "stevechavezast@gmail.com";
github = "steve-chavez";
name = "Steve Chávez";
};
steveej = {
email = "mail@stefanjunker.de";
github = "steveej";

View File

@ -0,0 +1,29 @@
{ 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;
};
}

View File

@ -34,4 +34,6 @@ self: super: {
timescaledb = super.callPackage ./ext/timescaledb.nix { };
tsearch_extras = super.callPackage ./ext/tsearch_extras.nix { };
}
tds_fdw = super.callPackage ./ext/tds_fdw.nix { };
}