1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-14 11:47:31 +00:00
Commit graph

66 commits

Author SHA1 Message Date
Santiago Fraire
93292ab70a docs: add example for devShells 2023-06-22 22:15:57 +02:00
Robert Hensing
80717d1161
Merge pull request #163 from figsoda/unused
remove unused code
2023-05-30 16:30:39 +02:00
figsoda
40ee120dcc remove unused code 2023-05-29 13:52:03 -04:00
figsoda
942a008e28 perInput: Make the default lazier 2023-05-29 13:39:48 -04:00
Robert Hensing
f5b6209441 flakeModules: Support disabledModules
Requires Nixpkgs > 2023-03-09
2023-03-09 17:24:06 +01:00
Robert Hensing
1a49a78b71 doc: Fix nixosModules link fragment 2023-01-26 23:10:40 +01:00
Robert Hensing
0ba773370f doc: improve nixosConfigurations description and example 2023-01-26 20:37:49 +01:00
Robert Hensing
08ba869d7c perInput: Improve description 2023-01-07 00:23:33 +01:00
Robert Hensing
319ee04044 easyOverlay: fix
The tests only caught this for the non-memoized system case.
2023-01-05 01:16:03 +01:00
Robert Hensing
9ca2803752 easyOverlay: Remove performance warning which is not relevant 2023-01-05 01:07:58 +01:00
Robert Hensing
2565b6d4a3 doc: debug: Add link to debug page 2022-12-27 14:05:15 +01: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
Robert Hensing
a765ceb02c perSystem: Add custom error messages for learning about top level module args
Example:

```
error: `self` (without `'`) is not a `perSystem` module argument, but a
       module argument  of the top level config.

       The following is an example usage of `self`. Note that its binding
       is in the `top` parameter list, which is declared by the top level module
       rather than the `perSystem` module.

         top@{ config, lib, self, ... }: {
           perSystem = { config, self', ... }: {
             # in scope here:
             #  - self
             #  - self'
             #  - config (of perSystem)
             #  - top.config (note the `top@` pattern)
           };
         }
```
2022-12-27 12:59:03 +01:00
Shea Levy
f3c79bef3b
Add option for defining flake-parts modules for downstream flakes. 2022-12-25 06:30:44 -05:00
Robert Hensing
7bb0781d08 Add debug module 2022-12-20 18:07:16 +01:00
Robert Hensing
85518a2916 Remove darwinModules
It should be added to the nix-darwin project instead.
2022-11-27 16:21:59 +00:00
Robert Hensing
4944a920d2 formatter: Use markdown 2022-11-13 11:51:28 +01:00
Robert Hensing
a78bfeaa86 Revert "formatter: Use mkTransposedPerSystemModule"
This reverts commit e7da962abb.
2022-11-13 11:50:16 +01:00
Robert Hensing
d8f05073ae Remove redundant lib.mdDoc 2022-11-11 07:41:10 +01:00
Robert Hensing
6b87695050 Use markdown by default 2022-11-11 07:41:08 +01:00
Shea Levy
96c27dbba0
packages: Use mkTransposedPerSystemModule 2022-11-10 14:06:56 -05:00
Shea Levy
1e5e56e476
legacyPackages: Use mkTransposedPerSystemModule 2022-11-10 14:06:33 -05:00
Shea Levy
e7da962abb
formatter: Use mkTransposedPerSystemModule 2022-11-10 14:06:11 -05:00
Shea Levy
5e259eb312
devShells: Use mkTransposedPerSystemModule 2022-11-10 14:05:51 -05:00
Shea Levy
5bcff37bc1
checks: Use mkTransposedPerSystemModule 2022-11-10 14:05:14 -05:00
Shea Levy
40b344843d
apps: Use mkTransposedPerSystemModule 2022-11-10 14:04:40 -05:00
Robert Hensing
0c8eff7513 Add transposition.<name>.adHoc 2022-10-26 14:07:24 +02:00
Robert Hensing
6269836424 Generalize transposed attributes 2022-10-26 14:06:02 +02:00
Robert Hensing
79b42f0842 Remove dead code
The module system guarantees presence of these attrs.
2022-10-26 12:34:16 +02:00
Robert Hensing
e511bc4812 Remove redundant null filters 2022-09-28 19:13:41 +02:00
Jonas Chevalier
d6fdbbca37
Update modules/formatter.nix
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2022-09-20 15:53:52 +02:00
Jonas Chevalier
09bc19757c
Update modules/formatter.nix
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2022-09-20 15:53:47 +02:00
zimbatm
41ba43a33d
add formatter schema
This is needed for flakes that want to support `nix fmt`
2022-09-19 16:59:51 +02:00
Robert Hensing
89cce5852d
Merge pull request #48 from hercules-ci/moduleWithSystem
Add `moduleWithSystem` flake module parameter
2022-09-13 14:10:30 +02:00
Robert Hensing
e646df196a Add moduleWithSystem flake module parameter 2022-09-13 13:56:21 +02:00
Robert Hensing
d254845ca8 legacyPackages: anything -> raw
The `anything` type is too strict, because it uses `attrsOf`
internally, filtering out `mkIf` attrs and therefore evaluating
attribute values when only the names would be needed.

Furthermore, it is not safe to make assumptions about the objects
in legacyPackages, because while most attributes contain packages
or package sets, anything is allowed, so we don't know for sure how
to merge.

Fixes #52
2022-08-20 17:13:55 +02:00
Lucas Desgouilles
690e548642
Skip getExe when app.<name>.program is a string 2022-06-23 03:03:48 +02:00
Robert Hensing
19e19dce5a Add withSystem parameter 2022-05-27 17:42:33 +02:00
Robert Hensing
ec760fc665 flake.overlay -> flake.overlays (Nix 2.8) 2022-05-25 19:53:10 +02: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
Robert Hensing
1bd171ef6b Add pkgs parameter to perSystem 2022-05-18 11:06:17 +02:00
Robert Hensing
e1ea24ed30 Add nixosConfigurations 2022-05-17 11:01:40 +02:00
Robert Hensing
1c0f8f3036 Move perSystem.packages into options 2022-05-17 10:12:13 +02:00
Robert Hensing
fdd87732fd Move perSystem.legacyPackages into options 2022-05-17 10:12:13 +02:00
Robert Hensing
a329428f20 Move perSystem.devShells into options 2022-05-17 10:12:13 +02:00
Robert Hensing
ef93e89462 Move perSystem.apps into options 2022-05-17 10:12:13 +02:00
Robert Hensing
4835e05925 Move perSystem.checks into options 2022-05-17 10:12:13 +02:00
Robert Hensing
3149d748cb Fix docbook syntax and literalExample deprecation 2022-05-17 10:12:13 +02:00
Robert Hensing
783e29f7dd Add mkPerSystemType, mkPerSystemModule 2022-05-17 10:12:13 +02:00