Previously, gerrit-queue used statik to embed files. Since go1.16, we have go:embed, which solves this much nicer, without any requirements to have the statik binary around. As the only other thing the shell.nix and .envrc plumbing did was bring a version of Go in scope, it's dropped now. We assume to have a recent-enough go binary around, else go will complain. Imported from https://github.com/flokli/gerrit-queue/pull/9 Change-Id: I851b06777a29d4f2d955cf3a7db6455a7189bc46 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4329 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in> Autosubmit: tazjin <mail@tazj.in>
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			330 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			330 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { pkgs, lib, ... }:
 | |
| 
 | |
| pkgs.buildGoModule {
 | |
|   pname = "gerrit-queue";
 | |
|   version = "master";
 | |
|   vendorSha256 = "0n5h7j416yb2mwic9c3rhqza64jlvl7iw507r9mkw3jadn4whm7a";
 | |
|   src = ./.;
 | |
| 
 | |
|   meta = with lib; {
 | |
|     description = "Gerrit submit bot";
 | |
|     homepage = "https://github.com/tweag/gerrit-queue";
 | |
|     license = licenses.asl20;
 | |
|   };
 | |
| }
 |