mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
bd331e42f5
The release with fix is still in alpha https://github.com/tds-fdw/tds_fdw/releases
31 lines
976 B
Nix
31 lines
976 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/postgresql/extension
|
|
install -D tds_fdw.control -t $out/share/postgresql/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 = postgresql.meta.platforms;
|
|
license = licenses.postgresql;
|
|
broken = versionAtLeast postgresql.version "11.0";
|
|
};
|
|
}
|