Commit Graph

62 Commits

Author SHA1 Message Date
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
David Arnold
c6169a2772
imp: filterPackages (#28)
* imp: filterPackages

* Update filterPackages.nix

* Update filterPackages.nix

Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>
2021-04-12 10:52:05 +02:00
dependabot[bot]
b2c27d1a81
Bump cachix/install-nix-action from v12 to v13 (#25)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from v12 to v13.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v12...8d6d5e949675fbadb765c6b1a975047fa5f09b27)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-05 16:06:57 +02:00
Jonas Chevalier
5466c5bbec
simpleFlake: use only legacyPackages (#23)
Since Flake resolves both namespaces, and legacyPackages is more
forgiving, use that and not deal with the subtle differences.
2021-02-28 11:55:58 +00:00
zimbatm
3982c9903e
remove unused functions 2021-01-07 21:33:30 +01:00
David Arnold
8088c6dbe8
simpleFlakes: checks magic for CI (#22)
closes #21
2021-01-06 13:17:32 +01: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
dependabot[bot]
af81e8d00b
Bump cachix/install-nix-action from v11 to v12 (#11)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from v11 to v12.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v11...07da2520eebede906fbeefa9dd0a2b635323909d)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-09 23:22:47 +00:00
dependabot[bot]
588973065f
Bump cachix/install-nix-action from v10 to v11 (#9)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from v10 to v11.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v10...95a8068e317b8def9482980abe762f36c77ccc99)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-28 08:48:55 +00:00
Tobias Bora
3cd06d3c1d
README: typo execPath -> exePath (#8) 2020-09-15 22:45:23 +00:00
zimbatm
a586a6b966
simpleFlake: support defaultPackage and devShell 2020-08-26 20:21:41 +02: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
0c686c77c4
ci: add GitHub Actions check (#6) 2020-08-01 13:56:00 +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
5973a46a75
oops, add the flattenTree.nix file 2020-07-22 11:29:59 +02:00
zimbatm
92ade60501
actually export flattenTree 2020-07-22 10:42:18 +02:00
zimbatm
b0d0c72b08
introduce flattenTree 2020-07-22 10:38:31 +02:00