Commit Graph

16 Commits

Author SHA1 Message Date
Maciej Zonski
93a5ba1698 flashrom: 1.6.0 -> 1.7.0 2026-03-08 04:20:58 +01:00
Stefan Frijters
5c38248890 flashrom: move NIX_CFLAGS_COMPILE into env for structuredAttrs 2026-01-30 23:07:04 +01:00
Marcin Serwin
d0a04f6fc0 flashrom: disable werror
Related to: https://github.com/NixOS/nixpkgs/pull/467954
2026-01-09 21:02:15 +01:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Franz Pletz
63ae28d2c8 flashrom: 1.5.1 -> 1.6.0 2025-07-31 16:23:56 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Grimmauld
65012b363e treewide: enable doPostInstall for libusb1 packages that expose udev rules
`libusb1` propagates the `udevCheckHook`.
Packages which depend on `libusb1` and expose udev
rules should enable the `doPostInstall` flag.
2025-05-27 21:42:39 +02:00
r-vdp
2d4e8c8083 flashrom: use finalAttrs 2025-02-15 14:49:40 +01:00
r-vdp
32ef95f442 flashrom: 1.3.0 -> 1.5.1
I cherry-picked the commits from https://github.com/NixOS/nixpkgs/pull/330581
and then added the 1.5.1 update on top.

We can drop the darwin patch since the affected code is only present in
the tests and those don't work on darwin anyway, so we can better just
don't compile them at all on that platform.

On Linux we do compile and now also run the tests.
2025-02-15 14:23:27 +01:00
edef
4251ec6870 flashrom: fix Darwin build
memcpy is a macro on Darwin, and thus requires braced initializer lists
to be parenthesized.
2025-02-15 13:59:43 +01:00
edef
498430e280 flashrom: remove (broken) Promontory support
Release notes for 1.4.0 state that Promontory chipsets are unsupported,
and that attempting to read flash on those systems may crash the system.

The patch that removes this (broken) support only made it into the
1.3.0 release, seemingly by mistake, and the relevant code has been
essentially untouched since.

We'd rather not crash the systems of unsuspecting NixOS/nixpkgs users,
so this change forward-ports the patch from 1.3.0, though amended to
reference the relevant bug in the error message, rather than requesting
the user email upstream.

Link: https://ticket.coreboot.org/issues/370
Link: https://review.coreboot.org/c/flashrom/+/68824
2025-02-15 13:59:26 +01:00
edef
a0e49b0271 flashrom: build with meson
Per the 1.4.0 release notes, Meson will be the only supported build
system for future versions.
2025-02-15 13:58:38 +01:00
edef
7500370fb9 flashrom: 1.3.0 -> 1.4.0 2025-02-15 13:57:33 +01:00
Tristan Ross
3bdb1ca6ba flashrom: fix building with clang 2025-01-25 20:53:22 -08:00
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