Commit Graph
17 Commits
Author SHA1 Message Date
Hilton Chain 3a0838e5e0 utils: nix: Change a few variables to parameters. 2026-07-06 21:53:12 +08:00
Hilton Chain 388bb5dbd0 utils: nix: Adjust variable names and docstrings. 2026-07-04 12:48:51 +08:00
Hilton Chain 386de67aee util: nix: Correct comment for <nix-wrapper>. 2026-07-04 12:33:57 +08:00
Hilton Chain 180635cee4 util: nix: Add <nix-wrapper>.
* modules/rosenthal/utils/nix.scm (<nix-wrapper>): New data type.
(nix-expressions->profile-build-wrapper, nix-shell-wrapper): Return a value of
it.
(nix-shell-wrapper->package, with-nix-profile): Use it.
2026-07-04 12:30:49 +08:00
Hilton Chain 30af71b024 util: nix-expressions->profile-build-wrapper: Deduplicate expressions list. 2026-07-04 12:30:47 +08:00
Hilton Chain c2722ed176 utils: nix: Add and use %nix-wrapper-default-exclude-env-paths. 2026-07-03 10:36:55 +08:00
Hilton Chain e28731a5de utils: nix-expressions->profile-build-wrapper: Move #:link-to argument to command-line.
* modules/rosenthal/utils/nix.scm (nix-expressions->profile-build-wrapper):
Remove #:link-to argument and get it from command-line instead.
(with-nix-profile): Remove path argument.
2026-07-03 02:10:32 +08:00
Hilton Chain 5f88ec068e utils: with-nix-profile: Use a shorter example. 2026-07-02 21:54:35 +08:00
Hilton Chain 83773b25db utils: Add with-nix-profile.
* modules/rosenthal/utils/nix.scm (%nix-shell-wrapper-for-profile?): New
parameter.
(with-nix-profile): New macro.
(nix-expressions->profile-build-wrapper, nix-shell-wrapper)
(nix-shell-wrapper->package): Adjust for it.
2026-07-02 19:56:01 +08:00
Hilton Chain 4d2f3a2e0c utils: installables->nix-expressions: Fix attrpath check. 2026-07-02 19:55:58 +08:00
Hilton Chain 205b14dd34 util: nix: Add missing exports.
* modules/rosenthal/utils/nix.scm (%nix-build-profile-paths)
(%nix-build-profile-extra-outputs): Export.
2026-07-02 17:09:44 +08:00
Hilton Chain 06a8a5f726 utils: Add nix-expressions->profile-build-wrapper.
* modules/rosenthal/utils/nix.scm (%nix-build-profile-paths)
(%nix-build-profile-extra-outputs): New variables.
(ensure-list, installables->nix-expressions)
(nix-expressions->profile-build-wrapper): New procedures.
(nix-shell-wrapper): Use ensure-list.
2026-07-02 17:02:02 +08:00
Hilton Chain fe34e0911d utils: nix-shell-wrapper: Fix match usage.
Probably I extended it from cond and forgot the else usage...
2026-07-02 01:21:49 +08:00
Hilton Chain 3f77432233 utils: nix-shell-wrapper: Fix #:environment-keep appending. 2026-07-01 18:28:06 +08:00
Hilton Chain 7a2f31556f utils: nix-shell-wrapper: Add environment options and improve expression handling. 2026-07-01 16:54:24 +08:00
Hilton Chain 398f692861 utils: nix-shell-wrapper: Fix typo in docstring. 2026-06-27 23:35:29 +08:00
Hilton Chain 32b08cc095 utils: Add nix-shell-wrapper.
* modules/rosenthal/utils/nix.scm: New file.
2026-06-27 23:17:19 +08:00