mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
958d23307b
ChangeLog: https://gitlab.com/dalibo/postgresql_anonymizer/-/blob/1.3.2/CHANGELOG.md?ref_type=tags#20240321--132---fix-pg_catalog-bindings
33 lines
970 B
Nix
33 lines
970 B
Nix
{ lib, fetchFromGitLab, buildGoModule, nixosTests, postgresql, makeWrapper }:
|
|
|
|
buildGoModule rec {
|
|
pname = "pg-dump-anon";
|
|
version = "1.3.2";
|
|
src = fetchFromGitLab {
|
|
owner = "dalibo";
|
|
repo = "postgresql_anonymizer";
|
|
rev = version;
|
|
hash = "sha256-MGdGvd4P1fFKdd6wnS2V5Tdly6hJlAmSA4TspnO/6Tk=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/pg_dump_anon";
|
|
|
|
vendorHash = "sha256-CwU1zoIayxvfnGL9kPdummPJiV+ECfSz4+q6gZGb8pw=";
|
|
|
|
passthru.tests = { inherit (nixosTests) pg_anonymizer; };
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
postInstall = ''
|
|
wrapProgram $out/bin/pg_dump_anon \
|
|
--prefix PATH : ${lib.makeBinPath [ postgresql ]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Export databases with data being anonymized with the anonymizer extension";
|
|
homepage = "https://postgresql-anonymizer.readthedocs.io/en/stable/";
|
|
maintainers = teams.flyingcircus.members;
|
|
license = licenses.postgresql;
|
|
mainProgram = "pg_dump_anon";
|
|
};
|
|
}
|