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

80 commits

Author SHA1 Message Date
Jean-Baptiste Giraudeau
180473db90
Add test to ensure no special handling of hydraJobs 2023-05-31 17:24:45 +02:00
Hamish Mackenzie
9e0a97e026
No special treatment for hydraJobs 2023-05-31 16:56:20 +02:00
dependabot[bot]
a1720a10a6
Bump cachix/install-nix-action from 20 to 21 (#96)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 20 to 21.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v20...v21)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-31 09:35:50 +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
2f02e38dfa
update allSystems.nix
Updated from nixpkgs fd531dee22c9a3d4336cc2da39e8dd905e8f3de4
2023-04-09 12:47:01 +02:00
zimbatm
575419ad23
split out allSystems.nix
Make it easier to maintain
2023-04-09 12:45:31 +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
Jonas Chevalier
1c226cc8c6
introduce externally extensible systems (#93)
This PR is a back-compatible subset of #84.

By adding a new flake input here, it makes it possible to override the
list of systems using flake overrides.

See <https://github.com/nix-systems/nix-systems> for the full
explanation.
2023-04-09 12:34:52 +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
dependabot[bot]
411e876415
Bump cachix/install-nix-action from 19 to 20 (#89)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 19 to 20.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v19...v20)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-06 12:21:09 +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
dependabot[bot]
3db36a8b46
Bump cachix/install-nix-action from 18 to 19 (#87)
* Bump cachix/install-nix-action from 18 to 19

Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 18 to 19.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v18...v19)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update nix.yml

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>
2023-02-13 11:16:34 +01:00
Domen Kožar
5aed5285a9
remove 20 years old arch (#82) 2022-11-02 14:33:13 +01:00
dependabot[bot]
6ee9ebb6b1
Bump cachix/install-nix-action from 17 to 18 (#81)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 17 to 18.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v17...v18)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-29 23:01:28 +02:00
Luc Perkins
c0e246b9b8
Update each-system template to use new flake output system (#76) 2022-08-07 15:12:55 +02:00
oxalica
7e2a3b3dfd
check-utils: use the same success derivation (#75)
A successful check doesn't need reporting, so we use the same derivation
to reduce building jobs.
2022-07-04 12:00:14 +02:00
Jonas Chevalier
bee6a7250d
Merge pull request #74 from sigprof/filter-packages
Fix `filterPackages` to match platform filtering done by Nixpkgs
2022-06-24 12:05:34 +02:00
Sergey Vlasov
32dc3d46b2 filterPackages: Fix a typo in the comment 2022-06-24 00:32:04 +03:00
Sergey Vlasov
3b6a41d794 filterPackages: Do not use meta.hydraPlatforms for filtering
The meta.hydraPlatforms attribute was never intended to mark the package
broken; actually lots of packages have `meta.hydraPlatforms = []` while
being perfectly usable.  Typical reasons for disabling Hydra builds are:

  - the package build process is so trivial that caching the build
    results on Hydra won't be useful (this often applies to wrapper
    packages, or some packages which contain just prebuilt data or
    binaries);

  - the package build process exceeds Hydra limits;

  - the package is impure and depends on some proprietary software
    installed on the build host (this is the case with some
    Darwin-specific packages that require Xcode to build);

  - the package license does not allow redistribution of binaries (which
    also may need to be modified to work with Nix, and many proprietary
    licenses don't allow redistribution of such modified binaries);
    although this should normally be handled with meta.unfree.

Especially the first case (wrapper packages) hits some important
packages (firefox, neovim).

Remove the usage of meta.hydraPlatforms from the filterPackages code, so
that the filtering performed by that function would match the actual
platform restriction of packages (meta.platforms and meta.badPlatforms).
2022-06-24 00:07:55 +03:00
Sergey Vlasov
3ff4550a66 filterPackages: Add support for meta.badPlatforms
Since https://www.github.com/NixOS/nixpkgs/pull/37803 Nixpkgs supports
using meta.badPlatforms to specify a list of platforms which are not
supported by the package despite being included in meta.platforms.
Modify filterPackages to honor these platform restrictions.
2022-06-24 00:01:45 +03:00
Markus Hauck
1ed9fb1935
Fix check-utils template directory name (#70) 2022-05-30 08:55:45 +02:00
Gabriel Fontes
04c1b18086
feat: add convenience eachDefaultSystemMap (#60) 2022-05-17 10:27:56 +02:00
Jörg Thalheim
a97445c4fc
expose examples as templates (#63) 2022-05-17 09:58:38 +02:00
Hazel Weakly
04b4d989fd
Sanitize the final derivation name to ensure length limits are respected (#66) 2022-05-16 22:32:57 +02:00
Jörg Thalheim
12806d31a3
Merge pull request #64 from numtide/all-systems
Update all systems list
2022-05-14 20:41:17 +01:00
Jörg Thalheim
86115ca06b
allSystems: sync with nixpkgs 2022-05-14 21:40:07 +02:00
Jörg Thalheim
f7e772af96
Merge pull request #56 from numtide/dependabot/github_actions/actions/checkout-3
Bump actions/checkout from 2 to 3
2022-05-14 20:23:30 +01:00
zimbatm
0d347c56f6
use defaultSystems in simpleFlake.nix
Keep the list of systems in sync by passing the list around.

Fixes #54
2022-05-12 18:28:16 +02:00
dependabot[bot]
a4b154ebbd
Bump cachix/install-nix-action from 16 to 17 (#58)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 16 to 17.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v16...v17)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 13:22:56 +02:00
zah
0f8662f131
Bugfix: simpleFlake works only on x86 and Linux (#57)
I've discovered this while trying to use it on a M1 Macbook (an `aarch64-darwin` system).
The change makes sure it will work by default on most systems by default. The user would use this parameter only to restrict the systems if necessary.
2022-03-26 13:28:42 +01:00
dependabot[bot]
eca9b1aae0
Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-07 00:05:01 +00:00
zimbatm
3cecb5b042
actually expose eachSystemMap
follow up on #55
2022-02-07 11:27:41 +01:00
Andy Richardson
846b2ae0fc
Update default.nix (#42) 2022-01-20 18:46:32 +01:00
Jonas Chevalier
3f197dc759
add system map for convenience (#55) 2022-01-20 18:42:55 +01:00
Maximilian Bosch
74f7e43192
eachSystem: push down system as far down as possible for Hydra jobs (#46) 2021-11-28 17:59:42 +00:00
dependabot[bot]
ad1f7522aa
Bump cachix/install-nix-action from 15 to 16 (#49)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 15 to 16.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v15...v16)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-28 17:39:48 +00:00
dependabot[bot]
bba5dcc8e0
Bump cachix/install-nix-action from 14 to 15 (#48)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 14 to 15.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v14...v15)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-15 22:15:45 +00:00
Jean-Baptiste Giraudeau
c91f3de5ad
eachSystem: special case hydraJobs to match hydra convention. (#45) 2021-10-21 23:17:30 +02:00
dependabot[bot]
7e5bf3925f
Bump cachix/install-nix-action from 13 to 14 (#43)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 13 to 14.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v13...v14)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-13 21:33:01 +02:00
Jörg Thalheim
997f7efcb7
Revert "Revert "add aarch64-darwin as default system (#40)"" (#41)
This reverts commit acfb1951f0.

This commit was reverted because of ghc is broken on aarch64-darwin.
This is however the wrong conclusion if one package is broken on darwin
than it should be not exposed in a flake or marked as broken accordingly.
2021-08-20 19:38:52 +02:00
zimbatm
acfb1951f0
Revert "add aarch64-darwin as default system (#40)"
This reverts commit c5d161cc0a.

This won't work if nixpkgs isn't also up to speed with aarch64-darwin.
2021-08-20 17:28:30 +02:00
Jörg Thalheim
c5d161cc0a
add aarch64-darwin as default system (#40) 2021-08-18 13:06:51 +02:00
Gytis Ivaskevicius
f7e004a55b
Fix derivation name with invalid characters (#38)
* Fix derivation name with invalid characters

Fix flake-utils input

* Fix failing test
2021-06-16 20:35:21 +00:00
Gytis Ivaskevicius
98c8d36b18
Add checks-utils (#36)
* Add checks-utils overlay

Add checks-utils overlay

Fix example flake inputs

Fix string expected exception

* Update check-utils implementation

* nixpkgs-fmt
2021-06-14 10:47:39 +02:00
zimbatm
7d706970d9
README: add support channel, mark as stable 2021-05-31 09:19:55 +02:00
Pacman99
b543720b25
filterPackages: add fallbacks for missing attrs (#32)
Co-authored-by: Pacman99 <pachum99@gmail.com>
2021-05-11 19:05:05 +00:00
David Arnold
2ebf2558e5
fixup (#31) 2021-04-25 10:08:52 +00:00
David Arnold
eed214942b
fix comment (#30) 2021-04-19 21:40:21 +00:00