about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
Diffstat (limited to 'third_party')
-rw-r--r--third_party/overlays/tvl.nix35
1 files changed, 4 insertions, 31 deletions
diff --git a/third_party/overlays/tvl.nix b/third_party/overlays/tvl.nix
index 427e24971f89..33031f94c288 100644
--- a/third_party/overlays/tvl.nix
+++ b/third_party/overlays/tvl.nix
@@ -83,39 +83,12 @@ depot.nix.readTree.drvTargets {
     };
   }));
 
-  # Upstreamed in https://github.com/NixOS/nixpkgs/pull/298044,
-  # can be reduced to just the patch on the next nixpkgs bump.
-  cbtemulator = super.buildGoModule rec {
-    pname = "cbtemulator";
-    version = "1.22.0";
-
-    src = (super.fetchFromGitHub {
-      owner = "googleapis";
-      repo = "google-cloud-go";
-      rev = "bigtable/v${version}";
-      hash = "sha256-eOi4QFthnmZb5ry/5L7wzr4Fy1pF/H07BzxOnXtmSu4=";
-    }) + "/bigtable";
-
-    vendorHash = "sha256-7M7YZfl0usjN9hLGozqJV2bGh+M1ec4PZRGYUhEckpY=";
-    subPackages = [ "cmd/emulator" ];
-
-    patches = [
+  # https://github.com/googleapis/google-cloud-go/pull/9665
+  cbtemulator = super.cbtemulator.overrideAttrs (old: {
+    patches = old.patches or [ ] ++ [
       ./patches/cbtemulator-uds.patch
     ];
-
-    postInstall = ''
-      mv $out/bin/emulator $out/bin/cbtemulator
-    '';
-
-    meta = with lib; {
-      description = "In-memory Google Cloud Bigtable server";
-      homepage = "https://github.com/googleapis/google-cloud-go/blob/bigtable/v1.22.0/bigtable/cmd/emulator/cbtemulator.go";
-      license = licenses.asl20;
-      maintainers = [ maintainers.flokli ];
-      mainProgram = "cbtemulator";
-      platforms = platforms.all;
-    };
-  };
+  });
 
   crate2nix = super.rustPlatform.buildRustPackage rec {
     pname = "crate2nix";