2024-09-17 20:55:33 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchgit,
|
|
|
|
postgresql,
|
|
|
|
buildPostgresqlExtension,
|
|
|
|
}:
|
2020-07-28 06:00:00 +01:00
|
|
|
|
2024-09-17 20:55:33 +01:00
|
|
|
buildPostgresqlExtension rec {
|
2020-07-28 06:00:00 +01:00
|
|
|
pname = "smlar-unstable";
|
2022-10-07 05:20:00 +01:00
|
|
|
version = "2021-11-08";
|
2020-07-28 06:00:00 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://sigaev.ru/smlar.git";
|
2022-10-07 05:20:00 +01:00
|
|
|
rev = "f2522d5f20a46a3605a761d34a3aefcdffb94e71";
|
2024-07-14 11:59:26 +01:00
|
|
|
hash = "sha256-AC6w7uYw0OW70pQpWbK1A3rkCnMvTJzTCAdFiY3rO7A=";
|
2020-07-28 06:00:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "USE_PGXS=1" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-07-28 06:00:00 +01:00
|
|
|
description = "Compute similary of any one-dimensional arrays";
|
|
|
|
homepage = "http://sigaev.ru/git/gitweb.cgi?p=smlar.git";
|
|
|
|
platforms = postgresql.meta.platforms;
|
|
|
|
license = licenses.bsd2;
|
2024-04-24 05:20:00 +01:00
|
|
|
maintainers = [ ];
|
2024-09-29 20:46:54 +01:00
|
|
|
# Broken on darwin and linux (JIT) with no upstream fix available.
|
|
|
|
broken = lib.versionAtLeast postgresql.version "16" && stdenv.cc.isClang;
|
2020-07-28 06:00:00 +01:00
|
|
|
};
|
|
|
|
}
|