fix(tazjin/emacs): Correctly pass through additional attributes
We really need target list diffing, would have caught this earlier. Change-Id: Ifc064400b3115c6e2242d0b503cde4216b2ee787 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5257 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
This commit is contained in:
		
							parent
							
								
									aab994e0dc
								
							
						
					
					
						commit
						333c12d72d
					
				
					 1 changed files with 32 additions and 27 deletions
				
			
		| 
						 | 
				
			
			@ -128,7 +128,7 @@ pkgs.makeOverridable
 | 
			
		|||
      '';
 | 
			
		||||
  in
 | 
			
		||||
  lib.fix
 | 
			
		||||
    (self: l: f: pkgs.writeShellScriptBin "tazjins-emacs" ''
 | 
			
		||||
    (self: l: f: (pkgs.writeShellScriptBin "tazjins-emacs" ''
 | 
			
		||||
      export PATH="${emacsBinPath}:$PATH"
 | 
			
		||||
      exec ${tazjinsEmacs f}/bin/emacs \
 | 
			
		||||
        --debug-init \
 | 
			
		||||
| 
						 | 
				
			
			@ -137,7 +137,9 @@ pkgs.makeOverridable
 | 
			
		|||
        --no-init-file \
 | 
			
		||||
        --directory ${./config} ${if l != null then "--directory ${l}" else ""} \
 | 
			
		||||
        --eval "(require 'init)" $@
 | 
			
		||||
    '' // {
 | 
			
		||||
    '').overrideAttrs
 | 
			
		||||
      (_: {
 | 
			
		||||
        passthru = {
 | 
			
		||||
          # Call overrideEmacs with a function (pkgs -> pkgs) to modify the
 | 
			
		||||
          # packages that should be included in this Emacs distribution.
 | 
			
		||||
          overrideEmacs = f': self l f';
 | 
			
		||||
| 
						 | 
				
			
			@ -163,9 +165,12 @@ pkgs.makeOverridable
 | 
			
		|||
 | 
			
		||||
          # Expose telega/tdlib version check as a target that is built in
 | 
			
		||||
          # CI.
 | 
			
		||||
          #
 | 
			
		||||
          # TODO(tazjin): uncomment when telega works again
 | 
			
		||||
          inherit tdlibCheck;
 | 
			
		||||
          meta.ci.targets = [ "tdlibCheck" ];
 | 
			
		||||
    })
 | 
			
		||||
        };
 | 
			
		||||
      }))
 | 
			
		||||
    null
 | 
			
		||||
    identity
 | 
			
		||||
  )
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue