1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/servers/sql/postgresql/ext/pg_partman.nix

33 lines
893 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, postgresql }:
2019-05-14 17:32:34 +01:00
stdenv.mkDerivation rec {
pname = "pg_partman";
version = "4.5.1";
2019-05-14 17:32:34 +01:00
buildInputs = [ postgresql ];
src = fetchFromGitHub {
owner = "pgpartman";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "182yqvgcpgw99swn7w516f6d1bid2gnmf6dfsgmldx5viz0d6vi0";
2019-05-14 17:32:34 +01:00
};
installPhase = ''
mkdir -p $out/{lib,share/postgresql/extension}
2019-05-14 17:32:34 +01:00
cp src/*.so $out/lib
cp updates/* $out/share/postgresql/extension
cp -r sql/* $out/share/postgresql/extension
cp *.control $out/share/postgresql/extension
2019-05-14 17:32:34 +01:00
'';
meta = with lib; {
2019-05-14 17:32:34 +01:00
description = "Partition management extension for PostgreSQL";
homepage = "https://github.com/pgpartman/pg_partman";
2019-05-14 17:32:34 +01:00
maintainers = with maintainers; [ ggpeti ];
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
};
}