1
0
Fork 0
mirror of https://github.com/numtide/flake-utils.git synced 2025-03-05 08:27:04 +00:00
Commit graph

29 commits

Author SHA1 Message Date
Jonas Chevalier
11707dc2f6
README: add new logo (#120) 2024-11-13 22:27:16 +01:00
NAHO
fa06cc1b3d
lib: eachDefaultSystemPassThrough/eachSystemPassThrough: init
Expose the eachDefaultSystemPassThrough and eachSystemPassThrough
functions to handle cases where the system key should not be injected by
eachDefaultSystem and eachSystem:

    inputs.flake-utils.lib.eachDefaultSystem (system: {
      checks./*<SYSTEM>.*/"<CHECK>" = /* ... */;
      devShells./*<SYSTEM>.*/"<DEV_SHELL>" = /* ... */;
      packages./*<SYSTEM>.*/"<PACKAGE>" = /* ... */;
    })
    // inputs.flake-utils.lib.eachDefaultSystemPassThrough (system: {
      homeConfigurations."<HOME_CONFIGURATION>" = /* ... */;
      nixosConfigurations."<NIXOS_CONFIGURATION>" = /* ... */;
    })

These functions prevent users from re-implementing simplified
eachDefaultSystem and eachSystem versions to avoid system key
injections, while benefiting from current and future complex logic, like
handling the '--impure' flag.

This addresses flake-utils' arguably biggest issue. [1]

[1]: https://ayats.org/blog/no-flake-utils
2024-09-16 22:56:16 +02:00
NAHO
988e455b6f
readme: remove trailing whitespaces 2024-09-11 22:39:44 +02:00
Shahar "Dawn" Or
1ef2e671c3
Update README.md (#111) 2024-01-15 10:00:34 +01:00
zimbatm
1721b3e7c8 README: add light commercial support offer 2023-08-23 14:03:34 +02:00
Julien Malka
919d646de7
Fix typo in ReadMe (#95) 2023-07-11 11:46:48 +02:00
Javed Mohamed
dbabf0ca0c
Add meld (#99)
Meld allows you to break up a Nix Flake into parts while using the
same inputs across all of them.  This is useful for splitting up large
flakes which are common in monorepos.
2023-06-25 18:15:56 +02:00
zimbatm
cfacdce06f
REAMDE: document the systems pattern a bit more 2023-04-11 10:47:17 +02:00
zimbatm
033b9f258c
clean flake check warnings 2023-04-09 12:49:34 +02:00
zimbatm
471aed544a
fixup! introduce externally extensible systems (#93)
re-expose defaultSystems even if it doesn't make a lot of sense anymore,
to not break back-compat.
2023-04-09 12:39:36 +02:00
Julian Antonielli
13faa43c34
Use less confusing syntax (#85) 2023-04-09 12:30:52 +02:00
Wesley Nelson
946da79176
Update documentation for the systems argument of simpleFlake (#92) 2023-04-08 11:39:05 +02:00
Abin Simon
93a2b84fc4
Update README to reflect example for eachDefaultSystem (#90)
packages.default instead of defaultPackage. Same for apps.
2023-03-15 18:33:47 +01:00
Jonas Chevalier
3f197dc759
add system map for convenience (#55) 2022-01-20 18:42:55 +01:00
zimbatm
7d706970d9
README: add support channel, mark as stable 2021-05-31 09:19:55 +02:00
Jörg Thalheim
08c7ad4a08
README: remove simple-flake branch from example (#14)
code is now in master.
2020-12-29 12:59:39 +00:00
Jonas Chevalier
5021eac203
Update README.md
fixes #12
2020-11-14 16:09:53 +00:00
Tobias Bora
3cd06d3c1d
README: typo execPath -> exePath (#8) 2020-09-15 22:45:23 +00:00
zimbatm
e34fcedfc7
add lib.simpleFlake (#5) 2020-08-23 13:28:05 +00:00
Jörg Thalheim
ec20f52e2f
add allSystems (#7)
The flake design makes it unecessary hard to adopt new platforms
by hardcoding system. By having this list ready to use, I hope
people will write more portable flakes.
2020-08-10 10:06:06 +00:00
zimbatm
8e1f14e82d
flattenTree: use / as the key separator
That character is less likely to be used in normal packaging names.
2020-07-22 11:35:16 +02:00
zimbatm
b0d0c72b08
introduce flattenTree 2020-07-22 10:38:31 +02:00
Jörg Thalheim
f99f597082
add defaultSystems examples (#3) 2020-07-21 11:58:06 +00:00
zimbatm
214c4471b5
README: add known issue 2020-07-20 15:57:39 +02:00
zimbatm
590d6d1bad
undate to latest flake 2020-07-07 14:01:39 +02:00
Frederik Rietdijk
400fa6d9af
Fix target specification type (#1)
Otherwise you get an error `Target specification with 3 components is ambiguous`.
2020-06-30 16:19:09 +00:00
zimbatm
364b5310d6
better docs 2020-04-22 17:33:24 +02:00
zimbatm
e2ad62c2e3
WIP 2020-04-22 17:12:09 +02:00
zimbatm
5888499f0b
Initial commit 2020-04-11 13:21:35 +00:00