el-get icon indicating copy to clipboard operation
el-get copied to clipboard

Add :when{-system,-executable}? field to recipe

Open Pitometsu opened this issue 10 years ago • 1 comments

It's a feature request. Is it hard to implement another few fields for recipes like :when-system and :when-executable? And implement it like this:

(when (executable-find "ghc") ...)
(when (eq system-type 'darwin) ...)

This let install some packages only for target OS and only if required executables found.

Pitometsu avatar Oct 09 '15 18:10 Pitometsu

I think it would make more sense to have a single :when field where you can put whatever lisp expression you want.

npostavs avatar Oct 10 '15 22:10 npostavs