2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchgit, postgresql }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "smlar-unstable";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "2021-11-08";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://sigaev.ru/smlar.git";
|
2022-10-21 18:38:19 +00:00
|
|
|
rev = "f2522d5f20a46a3605a761d34a3aefcdffb94e71";
|
|
|
|
sha256 = "sha256-AC6w7uYw0OW70pQpWbK1A3rkCnMvTJzTCAdFiY3rO7A=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ postgresql ];
|
|
|
|
|
|
|
|
makeFlags = [ "USE_PGXS=1" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D -t $out/lib *.so
|
|
|
|
install -D -t $out/share/postgresql/extension *.sql
|
|
|
|
install -D -t $out/share/postgresql/extension *.control
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-08-20 17:08:02 +00: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-05-15 15:35:15 +00:00
|
|
|
maintainers = [ ];
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
}
|