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

324 commits

Author SHA1 Message Date
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
Robert Hensing
fb87cc7333 dev/flake.nix: Rewrite comments 2022-11-11 05:53:18 +01:00
Robert Hensing
3efe8e4619 dev/flake.nix: Update flakerefs 2022-11-11 05:50:50 +01:00
Robert Hensing
e0291201b0 dev/flake.lock: Update
Flake lock file updates:

• Updated input 'hercules-ci-effects':
    'github:hercules-ci/hercules-ci-effects/e14d2131b7c81acca3904b584ac45fb72da64dd2' (2022-05-29)
  → 'github:hercules-ci/hercules-ci-effects/692309d1cbb24847cc2b0a345ec9f0fe9481a7db' (2022-11-10)
• Added input 'hercules-ci-effects/flake-parts':
    'github:hercules-ci/flake-parts/0e101dbae756d35a376a5e1faea532608e4a4b9a' (2022-10-27)
• Added input 'hercules-ci-effects/flake-parts/nixpkgs-lib':
    'github:NixOS/nixpkgs/34c5293a71ffdb2fe054eb5288adc1882c1eb0b1?dir=lib' (2022-10-09)
• Added input 'hercules-ci-effects/hercules-ci-agent':
    'github:hercules-ci/hercules-ci-agent/58954ab190bbc27a9d5149ebdafbf80851476461' (2022-11-09)
• Added input 'hercules-ci-effects/hercules-ci-agent/flake-parts':
    'github:hercules-ci/flake-parts/608ed3502263d6f4f886d75c48fc2b444a4ab8d8' (2022-07-06)
• Added input 'hercules-ci-effects/hercules-ci-agent/flake-parts/nixpkgs':
    follows 'hercules-ci-effects/hercules-ci-agent/nixpkgs'
• Added input 'hercules-ci-effects/hercules-ci-agent/nix-darwin':
    'github:LnL7/nix-darwin/54a24f042f93c79f5679f133faddedec61955cf2' (2022-07-14)
• Added input 'hercules-ci-effects/hercules-ci-agent/nix-darwin/nixpkgs':
    follows 'hercules-ci-effects/hercules-ci-agent/nixpkgs'
• Added input 'hercules-ci-effects/hercules-ci-agent/nixpkgs':
    'github:NixOS/nixpkgs/c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d' (2022-08-12)
• Added input 'hercules-ci-effects/hercules-ci-agent/pre-commit-hooks-nix':
    'github:hercules-ci/pre-commit-hooks.nix/596dac761042d9ba90a507d43ad506cb952c984d' (2022-05-29)
• Added input 'hercules-ci-effects/hercules-ci-agent/pre-commit-hooks-nix/flake-utils':
    'github:numtide/flake-utils/2ebf2558e5bf978c7fb8ea927dfaed8fefab2e28' (2021-04-25)
• Added input 'hercules-ci-effects/hercules-ci-agent/pre-commit-hooks-nix/nixpkgs':
    follows 'hercules-ci-effects/hercules-ci-agent/nixpkgs'
• Updated input 'hercules-ci-effects/nixpkgs':
    'github:NixOS/nixpkgs/73ad5f9e147c0d2a2061f1d4bd91e05078dc0b58' (2022-03-14)
  → 'github:NixOS/nixpkgs/52392d42c156db5b889db7f3cc3e9909e4259b2a' (2022-09-28)
• Updated input 'nixpkgs':
    'github:hercules-ci/nixpkgs/612e22e67eb6f8d5bfb6288abe515e9da3b96103' (2022-05-25)
  → 'github:NixOS/nixpkgs/872fceeed60ae6b7766cc0a4cd5bf5901b9098ec' (2022-11-09)
• Updated input 'pre-commit-hooks-nix':
    'github:hercules-ci/pre-commit-hooks.nix/596dac761042d9ba90a507d43ad506cb952c984d' (2022-05-29)
  → 'github:cachix/pre-commit-hooks.nix/ebcbfe09d2bd6d15f68de3a0ebb1e4dcb5cd324b' (2022-11-09)
• Updated input 'pre-commit-hooks-nix/flake-utils':
    'github:numtide/flake-utils/2ebf2558e5bf978c7fb8ea927dfaed8fefab2e28' (2021-04-25)
  → 'github:numtide/flake-utils/6ee9ebb6b1ee695d2cacc4faa053a7b9baa76817' (2022-10-29)
2022-11-11 05:50:01 +01:00
Robert Hensing
f3fa98168a
Merge pull request #64 from shlevy/perSystem-module
Add mkTransposedPerSystemModule for simple per-system exposed attrs
2022-11-11 05:39:28 +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
Shea Levy
8e6bca1b0a
Add mkTransposedPerSystemModule for simple per-system exposed attrs 2022-11-10 14:03:07 -05:00
Shea Levy
d707369f93
dev: Use flake.lock of main flake 2022-10-30 06:50:15 -04:00
Robert Hensing
0e101dbae7
Merge pull request #63 from hercules-ci/generalize-transposed-attrs
Generalize transposed attrs
2022-10-27 17:38:47 +02: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
08ce9a4239
Update ChangeLog.md 2022-10-11 19:20:13 +01:00
bors[bot]
96dc4e696b
Merge #60
60: Only depend on nixpkgs/lib. r=roberth a=shlevy

This reflects the actual requirements of the core flake-parts functionality and removes any possible confusion about where lib comes from (always flake-parts's input) vs where pkgs comes from (always the flake's nixpkgs input). Flakes which use flake-parts should only ever have to override its input in the very unlikely event of a bug in lib.

Hopefully lib will be separated into its own flake some day, which will also make this a much smaller footprint.

Co-authored-by: Shea Levy <shea@shealevy.com>
2022-10-11 18:11:04 +00:00
Shea Levy
13dddfdc67
Only depend on nixpkgs/lib.
This reflects the actual requirements of the core flake-parts
functionality and removes any possible confusion about where lib comes
from (always flake-parts's input) vs where pkgs comes from (always the
flake's nixpkgs input). Flakes which use flake-parts should only ever
have to override its input in the very unlikely event of a bug in lib.

Hopefully lib will be separated into its own flake some day, which
will also make this a much smaller footprint.
2022-10-11 13:59:40 -04:00
Robert Hensing
45298bd207
Merge pull request #58 from hercules-ci/remove-redundant-null-filters
Remove redundant null filters
2022-09-28 18:15:20 +01:00
Robert Hensing
e511bc4812 Remove redundant null filters 2022-09-28 19:13:41 +02:00
bors[bot]
f17e9dba09
Merge #56
56: add formatter schema r=roberth a=zimbatm

This is needed for flakes that want to support `nix fmt`.

Right now it's missing some testing as I didn't find a test framework for it.

Needed by https://github.com/numtide/treefmt/pull/169


Co-authored-by: zimbatm <zimbatm@zimbatm.com>
Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>
2022-09-20 15:03:09 +00: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
850d8a7602
Merge pull request #53 from hercules-ci/issue-52-legacyPackages-laziness
legacyPackages: anything -> raw
2022-08-20 17:24:36 +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
Robert Hensing
608ed35022
Merge pull request #46 from hercules-ci/use-registry
templates: Use flake registry for flake-parts
2022-07-06 12:14:41 +02:00
Robert Hensing
3e90daeccb templates: Use flake registry for flake-parts 2022-07-06 12:08:09 +02:00
Robert Hensing
9b0000f75f
Merge pull request #43 from ldesgoui/patch-1
Skip getExe when `app.<name>.program` is a string
2022-06-23 13:32:36 +02:00
Lucas Desgouilles
690e548642
Skip getExe when app.<name>.program is a string 2022-06-23 03:03:48 +02:00
Robert Hensing
6dbc77b9c0
Merge pull request #40 from hercules-ci/readme-migrate-flake-improvements
README: update flake migration example
2022-06-18 18:34:28 +02:00
Robert Hensing
1be1040976
README: update flake migration example 2022-06-18 15:59:50 +02:00
Robert Hensing
6ac93cfc7f
Merge pull request #33 from edrex/patch-1
Set packages.default for `nix run`
2022-06-04 10:12:28 +02:00
Eric Drechsel
fe47133e9d
Set packages.default for nix run
With the pre-2.7 `defaultPackage` key, one would write
```
defaultPackage = packages.hello
```

I guess you can do the same in 2.7, but then you have two attrs in packages, which seems like it might confuse tooling:

```
packages.default = packages.hello
```

I wonder if packages.default shouldn't be a string? but then it would need validation...
2022-06-03 14:02:13 -07:00
Robert Hensing
7678eacc0c
Merge pull request #30 from hercules-ci/more-docs
More docs
2022-05-29 18:46:10 +02:00
Robert Hensing
f45a71bca6 Write a bit about integrations 2022-05-29 18:42:42 +02:00
Robert Hensing
d1095bd855 Add hercules-ci-effects doc 2022-05-29 18:30:11 +02:00
Robert Hensing
6463146449
Merge pull request #29 from hercules-ci/docs-pre-commit-hooks.nix
Add pre-commit-hooks.nix to the docs
2022-05-29 18:09:29 +02:00
Robert Hensing
5a628a0994 Add pre-commit-hooks.nix to the docs
Ultimately Hercules CI should take care of the dependency injection,
but let's make a start first.
2022-05-29 18:07:43 +02:00
Robert Hensing
88ee50725f
Merge pull request #27 from hercules-ci/dev-hercules-ci-effects-flakeModule
dev: Use hercules-ci-effects.flakeModule
2022-05-28 16:39:59 +02:00
Robert Hensing
8fe43d231b dev: Use hercules-ci-effects.flakeModule 2022-05-28 16:38:26 +02:00
Robert Hensing
39a134713e
Merge pull request #26 from hercules-ci/format-options-html
Format options html
2022-05-28 12:51:07 +02:00
Robert Hensing
c2aa066381 Run basic deploy previews 2022-05-28 12:48:07 +02:00
Robert Hensing
0ea9e72c78 options.html: Self-linking headers 2022-05-28 12:44:33 +02:00
Robert Hensing
d0ed679646 options.html: Highlighting and max-width 2022-05-28 12:44:17 +02:00