First shot at generating a dhall FFI standard. Change-Id: I1cdf7eeaa6b2668a49282315f308a8e51abd0cf6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5887 Reviewed-by: Profpatsch <mail@profpatsch.de> Tested-by: BuildkiteCI
		
			
				
	
	
		
			54 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { depot, pkgs, lib, ... }:
 | |
| 
 | |
| let
 | |
|   aerc-patched = pkgs.aerc.overrideAttrs (old: {
 | |
|     patches = old.patches or [ ] ++ [
 | |
|       ./aerc-no-config-perms.patch
 | |
|     ];
 | |
|   });
 | |
| 
 | |
|   bins = depot.nix.getBins aerc-patched [ "aerc" ];
 | |
| 
 | |
|   config =
 | |
|     depot.users.Profpatsch.importDhall.importDhall
 | |
|       {
 | |
|         root = ./.;
 | |
|         files = [
 | |
|           "aerc.dhall"
 | |
|           "dhall/lib.dhall"
 | |
|           "ini/ini.dhall"
 | |
|         ];
 | |
|         main = "aerc.dhall";
 | |
|         deps = [
 | |
|         ];
 | |
|       }
 | |
|       {
 | |
|         aercFilter = name: "${aerc-patched}/share/aerc/filters/${name}";
 | |
|         "Ini/externs" = depot.users.Profpatsch.ini.externs;
 | |
|       };
 | |
| 
 | |
|   aerc-config = pkgs.linkFarm "alacritty-config" [
 | |
|     {
 | |
|       name = "aerc/accounts.conf";
 | |
|       path = pkgs.writeText "accounts.conf" config.accounts;
 | |
|     }
 | |
|     {
 | |
|       name = "aerc/aerc.conf";
 | |
|       path = pkgs.writeText "aerc.conf" config.aerc;
 | |
|     }
 | |
|     {
 | |
|       name = "aerc/binds.conf";
 | |
|       path = pkgs.writeText "binds.conf" config.binds;
 | |
|     }
 | |
|   ];
 | |
| 
 | |
|   aerc = depot.nix.writeExecline "aerc" { } [
 | |
|     "export"
 | |
|     "XDG_CONFIG_HOME"
 | |
|     aerc-config
 | |
|     bins.aerc
 | |
|     "$@"
 | |
|   ];
 | |
| 
 | |
| in
 | |
| aerc
 |