Set -ldflags for spaceapid to set version string
Co-authored-by: June <june@jsts.xyz>
This commit is contained in:
		
					parent
					
						
							
								b5ec5fd763
							
						
					
				
			
			
				commit
				
					
						7cef911b61
					
				
			
		
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -6,12 +6,16 @@ let | ||||||
|     ref = "main"; |     ref = "main"; | ||||||
|     rev = "bbeb0d0e2b4538faed275b9891fb55149bc3a2f8"; |     rev = "bbeb0d0e2b4538faed275b9891fb55149bc3a2f8"; | ||||||
|   }; |   }; | ||||||
|   spaceapid = pkgs.buildGoModule { |   spaceapid = pkgs.buildGoModule rec { | ||||||
|     pname = "spaceapid"; |     pname = "spaceapid"; | ||||||
|     version = "main"; |     version = "main"; | ||||||
| 
 | 
 | ||||||
|     src = spaceapidSrc; |     src = spaceapidSrc; | ||||||
|      |      | ||||||
|  |     ldflags = [ | ||||||
|  |       "-X main.version=${version}-${spaceapidSrc.rev}" | ||||||
|  |     ]; | ||||||
|  | 
 | ||||||
|     # Since spaceapid doesn't have any dependencies, we can set this to null and |     # Since spaceapid doesn't have any dependencies, we can set this to null and | ||||||
|     # use the nonexistend vendored dependencies. |     # use the nonexistend vendored dependencies. | ||||||
|     vendorHash = null; |     vendorHash = null; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue