2021-09-15 23:14:26 +02:00
|
|
|
{ lib, stdenv, fetchFromGitLab, postgresql }:
|
2020-06-04 13:31:17 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pg_ed25519";
|
|
|
|
version = "0.2";
|
2021-09-15 23:14:26 +02:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "dwagin";
|
|
|
|
repo = "pg_ed25519";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "16w3qx3wj81bzfhydl2pjhn8b1jak6h7ja9wq1kc626g0siggqi0";
|
2020-06-04 13:31:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ postgresql ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin # For buildEnv to setup proper symlinks. See #22653
|
|
|
|
mkdir -p $out/{lib,share/postgresql/extension}
|
|
|
|
|
|
|
|
cp *.so $out/lib
|
|
|
|
cp *.sql $out/share/postgresql/extension
|
|
|
|
cp *.control $out/share/postgresql/extension
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-06-04 13:31:17 +02:00
|
|
|
description = "PostgreSQL extension for signing and verifying ed25519 signatures";
|
|
|
|
homepage = "https://gitlab.com/dwagin/pg_ed25519";
|
|
|
|
maintainers = [ maintainers.renzo ];
|
|
|
|
platforms = postgresql.meta.platforms;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|