fix missing postInstall for ewwbar
This commit is contained in:
		
							parent
							
								
									b3f466d9a5
								
							
						
					
					
						commit
						4a4440ce9e
					
				
					 2 changed files with 38 additions and 4 deletions
				
			
		|  | @ -1,17 +1,28 @@ | |||
| { lib | ||||
| , rustPlatform | ||||
| , fetchurl | ||||
| , fetchzip | ||||
| , pkg-config | ||||
| , makeWrapper | ||||
| , libxkbcommon | ||||
| , eww | ||||
| , bash | ||||
| , gawk | ||||
| , bluez | ||||
| , coreutils | ||||
| , inotify-tools | ||||
| , playerctl | ||||
| , networkmanager | ||||
| , wireplumber | ||||
| , pulseaudio | ||||
| }: | ||||
| rustPlatform.buildRustPackage rec { | ||||
| 
 | ||||
|   pname = "ewwbar"; | ||||
|   version = "v0.1.1"; | ||||
| 
 | ||||
|   src = fetchurl { | ||||
|   src = fetchzip { | ||||
|     url = "https://git.huwe.mooo.com/willifan/desktop-utils/archive/${version}.tar.gz"; | ||||
|     sha256 = "sha256-yUwZdW8NusSS0cPmdl87z1C8rqq2/eBNdkqprbSkmUE="; | ||||
|     sha256 = "sha256-HbNbGEfkohFGmy22RGslrwR2REFbhbRL+I656V9e/7Q="; | ||||
|   }; | ||||
| 
 | ||||
|   cargoHash = "sha256-89Vljhbv2yLJtnr/6GLAuXkhVovJn1Iy+8jNgdPCCu8="; | ||||
|  | @ -19,12 +30,34 @@ rustPlatform.buildRustPackage rec { | |||
| 
 | ||||
|   nativeBuildInputs = [ | ||||
|     pkg-config | ||||
|     makeWrapper | ||||
|   ]; | ||||
| 
 | ||||
|   buildInputs = [ | ||||
|     libxkbcommon | ||||
|   ]; | ||||
| 
 | ||||
|   postInstall = '' | ||||
|     mkdir -p $out/bin | ||||
|     cp -r $src/eww $out/bin/eww | ||||
|   ''; | ||||
| 
 | ||||
|   postFixup = '' | ||||
|     wrapProgram $out/bin/ewwbar \ | ||||
|       --set PATH ${lib.makeBinPath  [ | ||||
|         eww | ||||
|         bash | ||||
|         gawk | ||||
|         bluez | ||||
|         coreutils | ||||
|         inotify-tools | ||||
|         playerctl | ||||
|         networkmanager | ||||
|         wireplumber | ||||
|         pulseaudio | ||||
|       ]} | ||||
|   ''; | ||||
| 
 | ||||
|   meta = with lib; { | ||||
|     description = "utils for my desktop"; | ||||
|     homepage = " git.huwe.mooo.com/willifan/desktop-utils"; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue