From dd147bbc64cd979db5ee0f64871c0ff1d863a51b Mon Sep 17 00:00:00 2001 From: Aaron Andersen Date: Sun, 31 Jan 2021 21:01:37 -0500 Subject: [PATCH] php.extensions.smbclient: init at 1.0.4 --- .../development/php-packages/smbclient/default.nix | 14 ++++++++++++++ pkgs/top-level/php-packages.nix | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 pkgs/development/php-packages/smbclient/default.nix diff --git a/pkgs/development/php-packages/smbclient/default.nix b/pkgs/development/php-packages/smbclient/default.nix new file mode 100644 index 000000000000..1aec97251e1b --- /dev/null +++ b/pkgs/development/php-packages/smbclient/default.nix @@ -0,0 +1,14 @@ +{ buildPecl, lib, pkgs }: +buildPecl { + pname = "smbclient"; + version = "1.0.4"; + sha256 = "07p72m5kbdyp3r1mfxhiayzdvymhc8afwcxa9s86m96sxbmlbbp8"; + + # TODO: remove this when upstream merges a fix - https://github.com/eduardok/libsmbclient-php/pull/66 + LIBSMBCLIENT_INCDIR = "${pkgs.samba.dev}/include/samba-4.0"; + + nativeBuildInputs = [ pkgs.pkg-config ]; + buildInputs = [ pkgs.samba ]; + + meta.maintainers = lib.teams.php.members; +} diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index 19feb36aa271..1a57c3bee4bb 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -134,6 +134,8 @@ lib.makeScope pkgs.newScope (self: with self; { redis = callPackage ../development/php-packages/redis { }; + smbclient = callPackage ../development/php-packages/smbclient { }; + sqlsrv = callPackage ../development/php-packages/sqlsrv { }; v8 = buildPecl {