summaryrefslogtreecommitdiff
path: root/pkgs/development/php-packages/smbclient/default.nix
blob: 689cc94b61c8ccb736f5b2e40c3e84f29667cfbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
  buildPecl,
  lib,
  samba,
  pkg-config,
}:
buildPecl {
  pname = "smbclient";
  version = "1.1.2";
  sha256 = "sha256-Hmp0RWOqxwCBXlca2YsRNahOhA1E5qxnmXSUx4Cpzec=";

  # TODO: remove this when upstream merges a fix - https://github.com/eduardok/libsmbclient-php/pull/66
  LIBSMBCLIENT_INCDIR = "${samba.dev}/include/samba-4.0";

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ samba ];

  meta = {
    description = "PHP wrapper for libsmbclient";
    license = lib.licenses.bsd2;
    homepage = "https://github.com/eduardok/libsmbclient-php";
    teams = [ lib.teams.php ];
  };
}