12 src = fetchFromGitHub {
13 owner = "GreenmaskIO";
15 rev = "refs/tags/v${version}";
16 hash = "sha256-ouDYXXlmvLRuR6ATUAk2Gn9toTVxRwQY1CgMyQUN/B0=";
19 vendorHash = "sha256-M7HcTQp4pzfSLvyCiV/loqqprKM1B93LOr4wxOVoHjk=";
21 subPackages = [ "cmd/greenmask/" ];
26 "-X=github.com/greenmaskio/greenmask/cmd/greenmask/cmd.Version=${version}"
29 nativeCheckInputs = [ coreutils ];
32 substituteInPlace internal/db/postgres/transformers/custom/dynamic_definition_test.go \
33 --replace-fail "/bin/echo" "${coreutils}/bin/echo"
35 substituteInPlace tests/integration/greenmask/main_test.go \
36 --replace-fail "TestTocLibrary" "SkipTestTocLibrary" \
37 --replace-fail "TestGreenmaskBackwardCompatibility" "SkipTestGreenmaskBackwardCompatibility"
38 substituteInPlace tests/integration/storages/main_test.go \
39 --replace-fail "TestS3Storage" "SkipTestS3Storage"
43 description = "PostgreSQL database anonymization tool";
44 homepage = "https://github.com/GreenmaskIO/greenmask";
45 changelog = "https://github.com/GreenmaskIO/greenmask/releases/tag/v${version}";
46 license = licenses.asl20;
47 maintainers = with maintainers; [ fab ];
48 mainProgram = "greenmask";