22 skipTestsCommand = builtins.foldl' (
25 testName = builtins.getAttr goFileName skipTests;
29 substituteInPlace pkg/berglas/${goFileName}_test.go \
30 --replace "TestClient_${testName}_storage" "SkipClient_${testName}_storage" \
31 --replace "TestClient_${testName}_secretManager" "SkipClient_${testName}_secretManager"
33 ) "" (builtins.attrNames skipTests);
40 src = fetchFromGitHub {
41 owner = "GoogleCloudPlatform";
44 sha256 = "sha256-aTUMEn/QkPzvAyUvMxyqLl6KWFHs+dQK0VDqYv36AGM=";
47 vendorHash = "sha256-n/NOAmOOoZMFZGreUGNgrZ3XGbhmI52KtgakcJ/SJIc=";
52 "-X github.com/GoogleCloudPlatform/berglas/v2/internal/version.version=${version}"
55 postPatch = skipTestsCommand;
58 version = testers.testVersion {
64 description = "Tool for managing secrets on Google Cloud";
65 homepage = "https://github.com/GoogleCloudPlatform/berglas";
66 license = licenses.asl20;
67 mainProgram = "berglas";