Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
34 lines
953 B
Nix
34 lines
953 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, postgresql
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pg_uuidv7";
|
|
version = "1.5.0";
|
|
|
|
buildInputs = [ postgresql ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fboulnois";
|
|
repo = "pg_uuidv7";
|
|
rev = "v${version}";
|
|
hash = "sha256-oVyRtjl3KsD3j96qvQb8bFLMhoWO81OudOL4wVXrjzI=";
|
|
};
|
|
|
|
installPhase = ''
|
|
install -D -t $out/lib pg_uuidv7${postgresql.dlSuffix}
|
|
install -D {sql/pg_uuidv7--${lib.versions.majorMinor version}.sql,pg_uuidv7.control} -t $out/share/postgresql/extension
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Tiny Postgres extension to create version 7 UUIDs";
|
|
homepage = "https://github.com/fboulnois/pg_uuidv7";
|
|
changelog = "https://github.com/fboulnois/pg_uuidv7/blob/main/CHANGELOG.md";
|
|
maintainers = with maintainers; [ gaelreyrol ];
|
|
platforms = postgresql.meta.platforms;
|
|
license = licenses.mpl20;
|
|
broken = versionOlder postgresql.version "13";
|
|
};
|
|
}
|