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:
parent
de68d8321f
commit
f6bb8dbe1c
1 changed files with 4 additions and 31 deletions
35
third_party/overlays/tvl.nix
vendored
35
third_party/overlays/tvl.nix
vendored
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue