-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
(require 'straight) | ||
|
||
(eval-and-compile | ||
(require 'cl-lib)) | ||
|
||
(defun ublt/straight-recipe (name &rest plist) | ||
(declare (indent 1)) | ||
(let ((recipe (cl-copy-list (cdr (straight-recipes-retrieve name))))) | ||
(cl-loop for (key value) on plist by #'cddr | ||
do (plist-put recipe key value)) | ||
(cons name recipe))) | ||
|
||
(defun ublt/straight-override (name &rest plist) | ||
(declare (indent 1)) | ||
(straight-override-recipe (apply #'ublt/straight-recipe name plist))) | ||
|
||
(cl-defun ublt/-fork (name &key branch) | ||
`(:repo ,(format "github:ubolonton/%s" name) | ||
:host nil ; XXX: Otherwise straight tries to construct https URL. | ||
:remote "ubolonton" | ||
:branch ,branch)) | ||
|
||
(ublt/straight-override 'lv | ||
:fork (ublt/-fork "hydra" :branch "delayed-hiding")) | ||
|
||
(ublt/straight-override 'hydra | ||
:fork (ublt/-fork "hydra" :branch "delayed-hiding")) | ||
|
||
(provide 'ublt-straight-recipes) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters