 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.
		
			
				
	
	
		
			36 lines
		
	
	
		
			912 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			912 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   lib,
 | |
|   rustPlatform,
 | |
|   fetchFromGitHub,
 | |
|   openssl,
 | |
|   pkg-config,
 | |
| }:
 | |
| 
 | |
| rustPlatform.buildRustPackage rec {
 | |
|   pname = "task-keeper";
 | |
|   version = "0.28.1";
 | |
| 
 | |
|   src = fetchFromGitHub {
 | |
|     owner = "linux-china";
 | |
|     repo = "task-keeper";
 | |
|     tag = "v${version}";
 | |
|     hash = "sha256-PT8NN6rHY9Ph15KikoAYAfJ++u6t6Mp8SPm24ZBdPDk=";
 | |
|   };
 | |
| 
 | |
|   nativeBuildInputs = [ pkg-config ];
 | |
|   buildInputs = [ openssl ];
 | |
|   useFetchCargoVendor = true;
 | |
|   cargoHash = "sha256-6KnZDSYPf3Rr9II/lsrPvzRMiwOknrstU8/91mv7x8k=";
 | |
| 
 | |
|   # tests depend on many packages (java, node, python, sbt, ...) - which I'm not currently willing to set up 😅
 | |
|   doCheck = false;
 | |
| 
 | |
|   meta = {
 | |
|     homepage = "https://github.com/linux-china/task-keeper";
 | |
|     description = "CLI to manage tasks from different task runners or package managers";
 | |
|     license = lib.licenses.asl20;
 | |
|     maintainers = with lib.maintainers; [ tennox ];
 | |
|     mainProgram = "tk";
 | |
|   };
 | |
| }
 |