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
c8c8e5661e
Remove errorLocation from the tests
...
As mentioned in the previous commit, we don't have a use case for
this in flake-parts yet, as far as I'm aware. It can be exposed
when we do have a concrete use case where it is needed.
2023-10-14 00:06:42 +02: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
bors[bot]
8e8d955c22
Merge #171
...
171: Add more docs r=roberth a=woile
This PR adds the following:
- an examples folder
- an example for devShell
- templates are no longer marked as examples, now there are templates and examples avoiding confusion
#170
Co-authored-by: Santiago Fraire <santiwilly@gmail.com>
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2023-07-04 10:20:19 +00:00
Robert Hensing
7910deccec
examples/shell-environments/README: typo
2023-07-04 12:19:47 +02:00
hercules-ci[bot]
267149c58a
Merge pull request #177 from hercules-ci/flake-update
...
`flake.lock`: Update
2023-07-01 23:37:45 +00:00
Hercules CI Effects
8af754293a
flake.lock: Update
...
Flake lock file updates:
• Updated input 'nixpkgs-lib':
'github:NixOS/nixpkgs/4f53efe34b3a8877ac923b9350c874e3dcd5dc0a?dir=lib' (2023-05-31)
→ 'github:NixOS/nixpkgs/4bc72cae107788bf3f24f30db2e2f685c9298dc9?dir=lib' (2023-06-29)
2023-07-01 23:35:49 +00:00
Santiago Fraire
6f53e9012c
docs: update to comments
2023-06-30 09:31:36 +02:00
bors[bot]
37dd7bb157
Merge #172
...
172: Add aarch64-linux and x86_64-darwin systems to the default template r=roberth a=sempruijs
The default template had only aarch64-darwin and x86-64-linux systems. I've added aarch linux and x86-64 darwin
Co-authored-by: sempruijs <sem@pruijs.net>
2023-06-26 06:53:48 +00:00
Santiago Fraire
1a3b864261
docs: make documentation visible right away
2023-06-24 08:36:14 +02:00
Santiago Fraire
8fd103c90b
docs: add troubleshooting to shell-environemnts
2023-06-24 08:22:56 +02:00
Santiago Fraire
02b1bdb2fe
docs: add commands example
2023-06-24 08:16:31 +02:00
Santiago Fraire
2cf8f2e746
docs: add lock to shell-environments
2023-06-23 19:31:29 +02:00
Santiago Fraire
fa681367b3
docs(README): add examples and projects
2023-06-22 22:16:05 +02:00
Santiago Fraire
a530cce721
docs: add examples folder
2023-06-22 22:16:05 +02:00
Santiago Fraire
93292ab70a
docs: add example for devShells
2023-06-22 22:15:57 +02:00
sempruijs
ebc8532767
Add aarch64-linux and x86_64-darwin systems to the default template
2023-06-17 21:11:44 +02:00
hercules-ci[bot]
71fb97f0d8
Merge pull request #167 from hercules-ci/flake-update
...
`flake.lock`: Update
2023-06-01 23:39:39 +00:00
Hercules CI Effects
4c50ea36d7
flake.lock: Update
...
Flake lock file updates:
• Updated input 'nixpkgs-lib':
'github:NixOS/nixpkgs/da45bf6ec7bbcc5d1e14d3795c025199f28e0de0?dir=lib' (2023-04-30)
→ 'github:NixOS/nixpkgs/4f53efe34b3a8877ac923b9350c874e3dcd5dc0a?dir=lib' (2023-05-31)
2023-06-01 23:36:07 +00:00
Robert Hensing
6ef2707776
Merge pull request #166 from hercules-ci/nixpkgs-lower-bound
...
Add lower bound to lib version
2023-05-31 17:24:36 +02:00
Robert Hensing
70d1b51a85
Add lower bound to lib version
2023-05-31 17:22:41 +02:00
Robert Hensing
8eab53d223
Merge pull request #165 from hercules-ci/nixpkgs-lower-bound
...
Add lower bound to lib version
2023-05-31 16:33:09 +02:00
Robert Hensing
542e396949
Add lower bound to lib version
2023-05-31 16:31:11 +02:00
Robert Hensing
80717d1161
Merge pull request #163 from figsoda/unused
...
remove unused code
2023-05-30 16:30:39 +02:00
Robert Hensing
41a6af276c
Merge pull request #164 from hercules-ci/fix-transposition-filterAttrs
...
Fix transposition.nix use of filterAttrs
2023-05-30 15:46:18 +02:00
Robert Hensing
6a6d251165
Update ChangeLog
2023-05-30 15:43:56 +02:00
Robert Hensing
6ae737878e
Test that packages is not strict in devShell
...
Discovered and solved by figsoda, see
https://github.com/hercules-ci/flake-parts/issues/160
2023-05-30 15:31:19 +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
Yang, Bo
1e8a89e5f8
Add moduleLocation to mkFlake argument
...
tmp
2023-05-09 09:53:22 -07:00
Robert Hensing
006c75898c
Merge pull request #151 from hercules-ci/flakeModules-doc
...
flakeModules: Improve doc
2023-05-08 17:44:43 +02:00
Robert Hensing
ebb60dc617
flakeModules: Improve doc
2023-05-08 17:42:26 +02: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
5beafefa44
Merge branch 'mkDeferredModuleOption'
2023-05-08 01:26:55 +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
Robert Hensing
f3e943c249
Merge pull request #144 from hercules-ci/contributing
...
Create CONTRIBUTING.md
2023-05-07 11:27:01 +00:00
Robert Hensing
df88875d39
CONTRIBUTING.md: More rules on request
2023-05-07 13:25:12 +02:00
Yang, Bo
5043aa8956
Add mkDeferredModuleOption
2023-05-06 19:30:03 -07:00
Robert Hensing
7b027db864
CONTRIBUTING: Formatting is not that important
2023-05-06 21:19:46 +02:00
Robert Hensing
dd87bb822c
Create CONTRIBUTING.md
2023-05-06 21:09:28 +02:00
hercules-ci[bot]
86684881e1
Merge pull request #141 from hercules-ci/flake-update
...
`flake.lock`: Update
2023-05-01 23:44:43 +00:00
Hercules CI Effects
56db8dd63b
flake.lock: Update
...
Flake lock file updates:
• Updated input 'nixpkgs-lib':
'github:NixOS/nixpkgs/e3652e0735fbec227f342712f180f4f21f0594f2?dir=lib' (2023-03-30)
→ 'github:NixOS/nixpkgs/da45bf6ec7bbcc5d1e14d3795c025199f28e0de0?dir=lib' (2023-04-30)
2023-05-01 23:37:35 +00:00
hercules-ci[bot]
dcc36e45d0
Merge pull request #131 from hercules-ci/flake-update
...
`flake.lock`: Update
2023-04-01 23:37:03 +00:00
Hercules CI Effects
1bd0ebd523
flake.lock: Update
...
Flake lock file updates:
• Updated input 'nixpkgs-lib':
'github:NixOS/nixpkgs/130fa0baaa2b93ec45523fdcde942f6844ee9f6e?dir=lib' (2023-03-09)
→ 'github:NixOS/nixpkgs/e3652e0735fbec227f342712f180f4f21f0594f2?dir=lib' (2023-03-30)
2023-04-01 23:35:44 +00:00
bors[bot]
3502ee99d6
Merge #129
...
129: add an unfree template r=roberth a=Mic92
An example on how to apply nixpkgs option when importing.
Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2023-03-25 09:52:21 +00:00
Jörg Thalheim
b3d11ffcb4
add an unfree template
2023-03-25 07:40:14 +01:00
Robert Hensing
c13d60b89a
Merge pull request #111 from hercules-ci/disabledModules
...
Support disabledModules
2023-03-09 17:39:58 +01:00