1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-15 17:50:53 +00:00
Commit graph

29 commits

Author SHA1 Message Date
Robert Hensing
e21f594423 Fix error location
The path didn't make it into the message because of a silly coding
mistake and overlooking the actual location in manual testing.
2023-10-29 12:30:12 +01:00
Robert Hensing
f427ecf1a0 Repurpose moduleLocation impl for new errorLocation
The difference is that moduleLocation is "guaranteed" reliable data,
whereas errorLocation is the best choice for error messages in the core.

moduleLocation is suitable for the module key attribute.
errorLocation is best for the *ROOT* module _file attribute.

Initially I applied errorLocation in too many places. It is only needed
when the flake output attribute names are strict in it.
To avoid confusion, I'm not exposing errorLocation to the modules, until
we have a concrete use case for it.
2023-10-14 00:03:28 +02:00
Robert Hensing
fc74939824 mkFlake: Prefer unsafeGetAttrPos over self.outPath for error message
This would not be advisable for anything other than error messages,
because Nix does not commit to any semantics for that function.
2023-10-13 23:03:07 +02:00
Yang, Bo
f359432597
Merge branch 'main' into moduleLocation 2023-07-22 18:07:20 -07:00
Robert Hensing
70d1b51a85 Add lower bound to lib version 2023-05-31 17:22:41 +02:00
Robert Hensing
542e396949 Add lower bound to lib version 2023-05-31 16:31:11 +02:00
figsoda
40ee120dcc remove unused code 2023-05-29 13:52:03 -04:00
Yang, Bo
1e8a89e5f8 Add moduleLocation to mkFlake argument
tmp
2023-05-09 09:53:22 -07:00
Robert Hensing
2e844a66a7
Merge pull request #149 from hercules-ci/importApply
flake-parts-lib: Add importApply
2023-05-08 12:44:15 +02:00
Robert Hensing
d0016e0990 flake-parts-lib: Add importApply 2023-05-08 00:48:08 +02:00
Yang, Bo
cdd3497577
Delete a trailing space 2023-05-07 13:42:48 -07:00
Yang, Bo
5043aa8956 Add mkDeferredModuleOption 2023-05-06 19:30:03 -07:00
bors[bot]
8bfe94414f
Merge #61
61: Add option for defining flake-parts modules for downstream flakes. r=roberth a=shlevy



Co-authored-by: Shea Levy <shea@shealevy.com>
2022-12-27 12:46:02 +00:00
Shea Levy
3c60ce7d7e
Add lib.defaultModule for extracting the default flakeModule 2022-12-25 06:30:50 -05:00
Shea Levy
f3c79bef3b
Add option for defining flake-parts modules for downstream flakes. 2022-12-25 06:30:44 -05:00
Robert Hensing
2cde01ee43 mkFlake: Set default module location
`outPath + "/flake.nix"` is technically an unfounded assumption,
except almost all calls will be made from flake.nix.
It surely is a lot better than `<unknown location>`.
2022-12-24 17:33:43 +01:00
Robert Hensing
bcb7065174 Fix infinite recursion in inputs 2022-12-17 18:42:26 +01:00
Robert Hensing
d8f05073ae Remove redundant lib.mdDoc 2022-11-11 07:41:10 +01:00
Shea Levy
8e6bca1b0a
Add mkTransposedPerSystemModule for simple per-system exposed attrs 2022-11-10 14:03:07 -05:00
Robert Hensing
3ee82a16d6 perSystem: functionTo -> deferredModule 2022-05-25 18:18:50 +02:00
Robert Hensing
3beb704537 flake-modules-core -> flake-parts 2022-05-25 16:38:27 +02:00
zimbatm
ad19f920cf
introduce lib.mkFlake
This makes the most common use-case a tiny bit less verbose.
2022-05-18 14:11:08 +02:00
Robert Hensing
3f25286e53 Polyfill functionTo where it is pressing 2022-05-17 23:21:05 +02:00
Robert Hensing
62e39568d5 dev: Add nixpkgs-fmt to pre-commit 2022-05-17 10:37:27 +02:00
Robert Hensing
3fe766e50c Add inputs to specialArgs 2022-05-17 10:26:19 +02:00
Robert Hensing
4835e05925 Move perSystem.checks into options 2022-05-17 10:12:13 +02:00
Robert Hensing
783e29f7dd Add mkPerSystemType, mkPerSystemModule 2022-05-17 10:12:13 +02:00
Robert Hensing
315c09733e Add freeformType to flake option 2021-11-21 16:58:54 +01:00
Robert Hensing
8c3f71965e Small beginnings 2021-10-27 11:05:52 +02:00