This builds the important website for both snix.systems and its predecessor, tvix.systems. Change-Id: I4cce5595098c804bd4df0cc2ae3c05344138e7b1 Reviewed-on: https://cl.snix.dev/c/snix/+/30502 Autosubmit: Florian Klink <flokli@flokli.de> Reviewed-by: Ryan Lahfa <ryan@lahfa.xyz> Tested-by: besadii
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			342 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			342 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { pkgs, ... }:
 | |
| let
 | |
|   mkWebroot = title: imgsrc: pkgs.runCommand "webroot" { } ''
 | |
|     mkdir -p $out
 | |
|     title="${title}" substituteAll ${./index.html} $out/index.html
 | |
|     cp ${imgsrc} $out/solves-this.png
 | |
|   '';
 | |
| 
 | |
| in
 | |
| {
 | |
|   tvix = mkWebroot "Tvix solves this" ./tvix_solves_this.png;
 | |
|   snix = mkWebroot "Snix solves this" ./snix_solves_this.png;
 | |
| }
 |