mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 08:39:08 +03:00
phpExtensions.memcached: Move to separate directory
This commit is contained in:
parent
df08b0fc00
commit
77224fd8e7
30
pkgs/development/php-packages/memcached/default.nix
Normal file
30
pkgs/development/php-packages/memcached/default.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ buildPecl, lib, fetchgit, php, pkgs }:
|
||||
let
|
||||
pname = "memcached";
|
||||
version = "3.1.5";
|
||||
in
|
||||
buildPecl {
|
||||
inherit pname version;
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://github.com/php-memcached-dev/php-memcached";
|
||||
rev = "v${version}";
|
||||
sha256 = "01mbh2m3kfbdvih3c8g3g9h4vdd80r0i9g2z8b3lx3mi8mmcj380";
|
||||
};
|
||||
|
||||
internalDeps = [
|
||||
php.extensions.session
|
||||
] ++ lib.optionals (lib.versionOlder php.version "7.4") [
|
||||
php.extensions.hash
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--with-zlib-dir=${pkgs.zlib.dev}"
|
||||
"--with-libmemcached-dir=${pkgs.libmemcached}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkgconfig ];
|
||||
buildInputs = with pkgs; [ cyrus_sasl zlib ];
|
||||
|
||||
meta.maintainers = lib.teams.php.members;
|
||||
}
|
@ -82,32 +82,7 @@ in
|
||||
|
||||
maxminddb = callPackage ../development/php-packages/maxminddb { };
|
||||
|
||||
memcached = buildPecl rec {
|
||||
version = "3.1.5";
|
||||
pname = "memcached";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://github.com/php-memcached-dev/php-memcached";
|
||||
rev = "v${version}";
|
||||
sha256 = "01mbh2m3kfbdvih3c8g3g9h4vdd80r0i9g2z8b3lx3mi8mmcj380";
|
||||
};
|
||||
|
||||
internalDeps = [
|
||||
php.extensions.session
|
||||
] ++ lib.optionals (lib.versionOlder php.version "7.4") [
|
||||
php.extensions.hash
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--with-zlib-dir=${pkgs.zlib.dev}"
|
||||
"--with-libmemcached-dir=${pkgs.libmemcached}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkgconfig ];
|
||||
buildInputs = with pkgs; [ cyrus_sasl zlib ];
|
||||
|
||||
meta.maintainers = lib.teams.php.members;
|
||||
};
|
||||
memcached = callPackage ../development/php-packages/memcached { };
|
||||
|
||||
mongodb = buildPecl {
|
||||
pname = "mongodb";
|
||||
|
Loading…
Reference in New Issue
Block a user