Compare commits
	
		
			3 Commits
		
	
	
		
			c925d09792
			...
			15a43d1a87
		
	
	| Author | SHA1 | Date | 
|---|---|---|
|  waalge | 15a43d1a87 | |
|  waalge | cf7020c528 | |
|  waalge | 873b39169e | 
|  | @ -1,5 +1,4 @@ | ||||||
| use clap::Parser; | use clap::Parser; | ||||||
| use std::env; |  | ||||||
| 
 | 
 | ||||||
| pub mod blueprint; | pub mod blueprint; | ||||||
| pub mod build; | pub mod build; | ||||||
|  | @ -57,7 +56,6 @@ fn version() -> String { | ||||||
|     format!( |     format!( | ||||||
|         "v{} {}", |         "v{} {}", | ||||||
|         built_info::PKG_VERSION, |         built_info::PKG_VERSION, | ||||||
|         built_info::GIT_COMMIT_HASH_SHORT |         built_info::GIT_COMMIT_HASH_SHORT.unwrap_or("unknown") | ||||||
|             .unwrap_or(&env::var("GIT_COMMIT_HASH_SHORT").unwrap_or("unknown".to_string())) |  | ||||||
|     ) |     ) | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -31,10 +31,12 @@ | ||||||
|           src = pkgs.lib.cleanSourceWith { src = self; }; |           src = pkgs.lib.cleanSourceWith { src = self; }; | ||||||
| 
 | 
 | ||||||
|           cargoLock.lockFile = ./Cargo.lock; |           cargoLock.lockFile = ./Cargo.lock; | ||||||
|           GIT_COMMIT_HASH_SHORT = self.rev or "dirty"; #  or self.dirtyRev; |  | ||||||
| 
 | 
 | ||||||
|  |           GIT_COMMIT_HASH_SHORT = self.shortRev or "dirty"; # or self.dirtyRev; | ||||||
|           postPatch = '' |           postPatch = '' | ||||||
|           substituteInPlace crates/aiken/src/cmd/mod.rs --replace  "built_info::GIT_COMMIT_HASH_SHORT" "\"$GIT_COMMIT_HASH_SHORT\"" |             substituteInPlace crates/aiken/src/cmd/mod.rs \ | ||||||
|  |               --replace  "built_info::GIT_COMMIT_HASH_SHORT" \ | ||||||
|  |               "Some(\"$GIT_COMMIT_HASH_SHORT\")" | ||||||
|           ''; |           ''; | ||||||
|            |            | ||||||
|           postInstall = '' |           postInstall = '' | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue