chore(3p/nixpkgs): drop most of cbtemulator expression

We bumped nixpkgs past that bump, so we only need to carry our
downstream UDS support patch.

Change-Id: I56504d71a8327cba2e43aa36b7b657f93cf35e51
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11405
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
This commit is contained in:
Florian Klink 2024-04-13 13:42:50 +03:00 committed by clbot
parent de68d8321f
commit f6bb8dbe1c

View file

@ -83,39 +83,12 @@ depot.nix.readTree.drvTargets {
}; };
})); }));
# Upstreamed in https://github.com/NixOS/nixpkgs/pull/298044, # https://github.com/googleapis/google-cloud-go/pull/9665
# can be reduced to just the patch on the next nixpkgs bump. cbtemulator = super.cbtemulator.overrideAttrs (old: {
cbtemulator = super.buildGoModule rec { patches = old.patches or [ ] ++ [
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 = [
./patches/cbtemulator-uds.patch ./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 { crate2nix = super.rustPlatform.buildRustPackage rec {
pname = "crate2nix"; pname = "crate2nix";