 63bff8c132
			
		
	
	
		63bff8c132
		
			
		
	
	
	
	
		
			
			Cargo 1.84.0 seems to have changed the output format of cargo vendor again, once again invalidating fetchCargoTarball FOD hashes. It's time to fix this once and for all, switching across the board to fetchCargoVendor, which is not dependent on cargo vendor's output format. It should be possible to reproduce this diff. To do so, get the list of files changed by this commit, e.g. with git diff --name-only, then run the following two commands, each with that list of files as their standard input: xargs sed -i 's/^\(. *\)\(cargoHash\)\b/\1useFetchCargoVendor = true;\n\1cargoHash/' cut -d / -f 4 | xargs -n 1 nix-update --version=skip This will take a long time. It might be possible to parallelize it using xargs' -P option. I haven't tested it.
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   lib,
 | |
|   fetchFromGitHub,
 | |
|   gitUpdater,
 | |
|   openssl,
 | |
|   pkg-config,
 | |
|   rustPlatform,
 | |
| }:
 | |
| 
 | |
| rustPlatform.buildRustPackage rec {
 | |
|   pname = "keyscope";
 | |
|   version = "1.4.0";
 | |
| 
 | |
|   src = fetchFromGitHub {
 | |
|     owner = "spectralops";
 | |
|     repo = "keyscope";
 | |
|     tag = "v${version}";
 | |
|     hash = "sha256-2DhKiQixhTCQD/SYIQa+o1kzEsslu6wAReuWr0rTrH8=";
 | |
|   };
 | |
| 
 | |
|   useFetchCargoVendor = true;
 | |
|   cargoHash = "sha256-f4r0zZTkVDfycrGqRCaBQrncpAm0NP6XYkj3w7fzQeY=";
 | |
| 
 | |
|   nativeBuildInputs = [ pkg-config ];
 | |
| 
 | |
|   buildInputs = [ openssl ];
 | |
| 
 | |
|   # build script tries to get information from git
 | |
|   postPatch = ''
 | |
|     echo "fn main() {}" > build.rs
 | |
|   '';
 | |
| 
 | |
|   VERGEN_GIT_SEMVER = "v${version}";
 | |
| 
 | |
|   # Test require network access
 | |
|   doCheck = false;
 | |
| 
 | |
|   passthru.updateScript = gitUpdater { };
 | |
| 
 | |
|   meta = {
 | |
|     description = "Key and secret workflow (validation, invalidation, etc.) tool";
 | |
|     homepage = "https://github.com/spectralops/keyscope";
 | |
|     changelog = "https://github.com/spectralops/keyscope/blob/v${version}/CHANGELOG.md";
 | |
|     license = lib.licenses.asl20;
 | |
|     maintainers = with lib.maintainers; [ figsoda ];
 | |
|     mainProgram = "keyscope";
 | |
|   };
 | |
| }
 |