Co-Authored-By: edef <edef@edef.eu> Co-Authored-by: Ryan Lahfa <raito@lix.systems> Change-Id: Ica1cda177a236814de900f50a8a61d288f58f519
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			569 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			569 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { pkgs, ... }:
 | |
| 
 | |
| pkgs.stdenv.mkDerivation {
 | |
|   name = "deploy-machine";
 | |
| 
 | |
|   phases = [ "installPhase" "installCheckPhase" ];
 | |
| 
 | |
|   nativeBuildInputs = with pkgs; [
 | |
|     makeWrapper
 | |
|   ];
 | |
| 
 | |
|   installPhase = ''
 | |
|     mkdir -p $out/bin
 | |
|     makeWrapper ${./deploy-machine.sh} $out/bin/deploy-machine.sh \
 | |
|       --prefix PATH : ${with pkgs; lib.makeBinPath [
 | |
|         ansi2html
 | |
|         git
 | |
|         jq
 | |
|         nvd
 | |
|       ]}
 | |
|   '';
 | |
| 
 | |
|   installCheckInputs = with pkgs; [
 | |
|     shellcheck
 | |
|   ];
 | |
| 
 | |
|   doInstallCheck = true;
 | |
|   installCheckPhase = ''
 | |
|     shellcheck $out/bin/deploy-machine.sh
 | |
|   '';
 | |
| }
 |