diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2024-05-06 09:54:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-06 09:54:44 +0200 |
commit | c81965f76448dd77b0fc9d7b4ef2c3805945130a (patch) | |
tree | 472043906495bddae4bb19590ef9c7fa8fc09675 /pkgs/by-name/gr | |
parent | f172e54f34fa1529296f0e449cd5e7f6abb2654f (diff) | |
parent | 80e4a7cd8de40e749e98d6ea2c21a5fa4e1caedd (diff) |
Merge pull request #309133 from fabaff/greenmask
greenmask: init at 0.1.12
Diffstat (limited to 'pkgs/by-name/gr')
-rw-r--r-- | pkgs/by-name/gr/greenmask/package.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/by-name/gr/greenmask/package.nix b/pkgs/by-name/gr/greenmask/package.nix new file mode 100644 index 0000000000000..3009c69f40c26 --- /dev/null +++ b/pkgs/by-name/gr/greenmask/package.nix @@ -0,0 +1,50 @@ +{ + lib, + buildGoModule, + coreutils, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "greenmask"; + version = "0.1.12"; + + src = fetchFromGitHub { + owner = "GreenmaskIO"; + repo = "greenmask"; + rev = "refs/tags/v${version}"; + hash = "sha256-RotNZnmOYZfrukg0OPGnxCf0nbspqUdSJ53P9cmFlOA="; + }; + + vendorHash = "sha256-WCsZ5DU+mZk9M1lldBY4q2PXI8DDFytPojzGJ6wqXsg="; + + subPackages = [ "cmd/greenmask/" ]; + + ldflags = [ + "-s" + "-w" + "-X=github.com/greenmaskio/greenmask/cmd/greenmask/cmd.Version=${version}" + ]; + + nativeCheckInputs = [ coreutils ]; + + preCheck = '' + substituteInPlace internal/db/postgres/transformers/custom/dynamic_definition_test.go \ + --replace-fail "/bin/echo" "${coreutils}/bin/echo" + + substituteInPlace tests/integration/greenmask/main_test.go \ + --replace-fail "TestTocLibrary" "SkipTestTocLibrary" \ + --replace-fail "TestGreenmaskBackwardCompatibility" "SkipTestGreenmaskBackwardCompatibility" + substituteInPlace tests/integration/storages/main_test.go \ + --replace-fail "TestS3Storage" "SkipTestS3Storage" + ''; + + meta = with lib; { + description = "PostgreSQL database anonymization tool"; + homepage = "https://github.com/GreenmaskIO/greenmask"; + changelog = "https://github.com/GreenmaskIO/greenmask/releases/tag/v${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + mainProgram = "greenmask"; + }; +} |