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";
|
2021-05-28 09:39:13 +00:00
|
|
|
version = "2020-10-07";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://sigaev.ru/smlar.git";
|
2021-05-28 09:39:13 +00:00
|
|
|
rev = "25a4fef344f5c2b90e6a9d32144ee12b9198487d";
|
|
|
|
sha256 = "14mj63mbkcphrzw6890pb5n8igh27i9g7kh4wjdhgx3g7llbjbdw";
|
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;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|