Commit Graph

51 Commits

Author SHA1 Message Date
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
aleksana
571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00
Ellie Hermaszewska
e134422465
maintainers: remove expipiplus1
Another year, another exhausting undermoderated thread full of people
arguing against being an inclusive community, tone policing and denying
that discriminatory behaviour even exists.

This clearly isn't getting any better and I'm embarrassed that I stayed
around for this long. I can't continue to lend my name to such a
project.
2024-11-08 14:24:58 +08:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Jörg Thalheim
5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00
Luflosi
a52dfe8145
apio: 0.8.1 -> 0.9.5
https://github.com/FPGAwars/apio/releases/tag/v0.9.5

Also:
- Enable `strictDeps`
- Disable failing test
- Use `pyproject = true` instead of `format = "pyproject"`
- Use `--replace-fail` instead of `--replace`
- Minor improvements
2024-06-22 13:54:48 +02:00
Nick Cao
2dd2a2cd26
Merge pull request #320156 from r-ryantm/auto-update/ecpdap
ecpdap: 0.1.8 -> 0.2.0
2024-06-17 16:17:04 -04:00
R. Ryantm
d0944be9eb ecpdap: 0.1.8 -> 0.2.0 2024-06-15 23:24:29 +00:00
Emily
4b1d39d935 treewide: remove myself from packages I don’t use
I’ve had an extended absence from Nix work and no longer actively
use a bunch of packages I used to maintain, so remove myself as a
maintainer from things I can’t usefully review/test changes for
as I ease back into things. This does unfortunately leave a few
packages orphaned (`stm32loader`, `tinyprog`, `python3Packages.fx2`,
and `python3Packages.jsonmerge`).
2024-06-15 16:53:23 +01:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Dave Anderson
308cb342c9 maintainers: drop danderson 2024-04-26 11:36:50 -07:00
R. Ryantm
6164c93efe openfpgaloader: 0.12.0 -> 0.12.1 2024-03-24 03:48:13 +00:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
R. Ryantm
b1c1197d80 openfpgaloader: 0.11.0 -> 0.12.0 2024-03-09 13:28:50 +00:00
Martin Weinelt
8056f9250c
treewide: remove redundant SETUPTOOLS_SCM_PRETEND_VERSION usage
The setuptools-scm packages gained a setup hook, that sets it to the
derivation version automatically, so setting it to that manually has
become redundant.

This also affects downstream consumers of setuptools-scm, like hatch-vcs
or flit-scm.
2023-12-20 20:16:39 +01:00
Weijia Wang
ca5af55422 openfpgaloader: add darwin support 2023-10-17 12:57:59 +02:00
Peder Bergebakken Sundt
c8466f963a apio: switch to pypaBuildHook 2023-09-22 15:56:49 +02:00
Jan Malakhovski
591ccfe5b9 treewide: noop: refer to src.name or similar where appropriate, part 3: more use cases
This continues where d8f7f6a5ce left off. Similarly
to that commit, this commit this also points `sourceRoot`s to `src.name` and similar
instead of keeping hardcoded names, and edits other derivation attrs do do the same,
where appropriate.

Also, similarly to d8f7f6a5ce some of expressions this
edits use `srcs` attribute with customly-named sources, so they have to be moved
into `let` blocks to keep evaluation efficient (the other, worse, way to do this
would to recurcively refer to `elemAt n finalAttrs.srcs` or, similarly, with `rec`).
2023-08-11 09:20:44 +00:00
Pol Dellaiera
62d3dc7026
openfpgaloader: use `finalAttrs pattern 2023-08-06 21:33:43 +02:00
R. Ryantm
2195e53f3f openfpgaloader: 0.10.0 -> 0.11.0 2023-08-06 09:00:38 +00:00
Jan Malakhovski
5852f26bdc treewide: noop: refer to src.name or similar in sourceRoot where appropriate, part 1: trivial cases 2023-08-03 16:32:03 +00:00
Jonathan Neuschäfer
2fe7e66ca0 lattice-diamond: Replace direct use of /usr/bin/id with Nix-compatible path 2023-02-19 15:52:13 +01:00
Jonathan Neuschäfer
4df32ef3b7 lattice-diamond: Make ELF binaries in synpbase usable 2023-02-19 15:52:13 +01:00
Jonathan Neuschäfer
9b5469bd50 lattice-diamond: Add Diamond's library directories into RPATH
Subtools such as pnmainc rely on libraries in the diamond/bin/lin64 and
diamond/ispfpga/bin/lin64 directories, but they don't set LD_LIBRARY_PATH as
would be needed.

To make things work, simply include these two directories in the RPATH that is
patched into Diamond binaries.
2023-02-19 15:52:13 +01:00
Jonathan Neuschäfer
3cb4d0338d lattice-diamond: Expose pnmainc and ddtcmd commands
These commands are used by Amaranth.
2023-02-19 15:52:13 +01:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
R. Ryantm
8259b08d9c openfpgaloader: 0.9.1 -> 0.10.0 2023-01-02 21:49:47 +08:00
Sandro
592815804a
Merge pull request #192097 from Luflosi/update/nextpnr 2022-09-27 22:01:06 +02:00
R. Ryantm
edcea81983 openfpgaloader: 0.9.0 -> 0.9.1 2022-09-22 23:45:58 +08:00
Luflosi
b639e033e0
trellis: 2021-12-14 -> unstable-2022-09-14 2022-09-20 16:00:37 +02:00
R. Ryantm
bca883c307 ecpdap: 0.1.7 -> 0.1.8 2022-08-01 13:44:45 +00:00
R. Ryantm
c650b0c63b openfpgaloader: 0.8.0 -> 0.9.0 2022-07-29 14:18:39 +00:00
Benjamin Koch
388dfb39f5 openfpgaloader: 0.6.0 -> 0.8.0 2022-07-02 17:46:32 +02:00
Benjamin Koch
c00e3a79c1 openfpgaloader: add optional dependencies
This avoids the following missing features:

    hidapi-libusb not found: cmsis_dap support disabled
    zlib library not found: can't flash intel/altera devices
2022-07-02 17:41:31 +02:00
Luflosi
7758635d42
apio: 0.8.0 -> 0.8.1
https://github.com/FPGAwars/apio/releases/tag/v0.8.1
2022-04-30 11:43:00 +02:00
Luflosi
d75f9fed05
apio: 0.7.6 -> 0.8.0
https://github.com/FPGAwars/apio/releases/tag/v0.8.0
2022-01-08 16:16:59 +01:00
Jonathan Ringer
7c517f25ce
icestorm: update homepage 2021-12-28 09:45:52 -08:00
Austin Seipp
5caed9dc02 nextpnr: 2021.11.24 -> 2021.15.21; update trellis
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2021-12-17 03:50:48 -06:00
R. Ryantm
fc5612942b openfpgaloader: 0.5.0 -> 0.6.0 2021-12-08 20:54:31 +00:00
Robert Scott
87ca1442f9 trellis: fix build for darwin 2021-11-13 22:09:25 +00:00
rowanG077
eebfe7199d trellis: Added installCheckPhase that ensures database is available and updated maintainers 2021-10-16 19:15:47 -05:00
rowanG077
56c31c1b13 trellis: Revert removal of CMAKE_INSTALL_DATADIR
This is used to refer to the database file. Without it
many tools can't be used.
2021-10-16 19:15:47 -05:00
Las Safin
4ebe496bad trellis: 2021.07.06 -> 2021-09-01
I also cleaned up some unnecessary parts.
2021-09-04 09:19:53 -05:00
Pooya Moradi
f46e3cbf67 trellis: move the directory to pkgs/development/embedded/fpga/ 2021-08-16 15:30:02 +04:30
Pooya Moradi
87c7e516bd tinyprog: move the directory to pkgs/development/embedded/fpga/ 2021-08-16 15:30:02 +04:30
Pooya Moradi
5e0993a300 apio: move the directory to pkgs/development/embedded/fpga/ 2021-08-16 15:30:02 +04:30
Pooya Moradi
864adb1a08 ecpdap: move the directory to pkgs/development/embedded/fpga/ 2021-08-16 15:30:02 +04:30
Pooya Moradi
48d9e57d0f lattice-diamond: move the directory to pkgs/development/embedded/fpga/ 2021-08-16 15:30:01 +04:30
Pooya Moradi
8eec22ea67 fujprog: move the directory to pkgs/development/embedded/fpga/ 2021-08-16 15:29:59 +04:30
Pooya Moradi
0aafe24e76 icestorm: move the directory to pkgs/development/embedded/fpga/ 2021-08-16 15:29:59 +04:30