Commit Graph

26 Commits

Author SHA1 Message Date
Felix Singer
da86a19b95 flashprog: Enable strictDeps and __structuredAttrs
Signed-off-by: Felix Singer <felixsinger@posteo.net>
2026-08-05 05:51:52 +02:00
Eman Resu
ff094f60ad treewide: replace more singleton license lists 2026-07-15 14:04:39 -04:00
Felix Singer
4422a8754b flashprog: Add Jared Baur (jmbaur) as another maintainer
Signed-off-by: Felix Singer <felixsinger@posteo.net>
2026-02-16 17:49:11 +01:00
Felix Singer
8e9eb2461a flashprog: 1.4 -> 1.5
Signed-off-by: Felix Singer <felixsinger@posteo.net>
2026-02-16 17:48:45 +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
Wolfgang Walther
91a8fee3aa treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +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
Felix Singer
b5410fd1d4 flashprog: Add changelog link to meta information
Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-05-25 05:30:16 +02:00
Felix Singer
9926a81f84 flashprog: Drop duplicated libftdi udev rules
In order to not create conflicts with libftdi, drop these rules from the
flashprog udev file.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-04-18 22:03:46 +02:00
Felix Singer
8892e836f2 flashprog: Drop superfluous cd command
Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-04-18 22:03:46 +02:00
Sigmanificient
670aba9a64 treewide: remove unused arguments 2025-03-13 18:00:11 +01:00
Felix Singer
e6d2fecccb flashprog: Enable nix update script
Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-03-10 00:11:47 +01:00
Felix Singer
341bff09a0 flashprog: 1.3 -> 1.4
Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-03-09 01:05:21 +01:00
Felix Singer
7a9e4a3a3d flashprog: Apply patch for fixing compiler warnings
Quoting the original commit message:

Some toolchains complain that this shadows the global from <getopt.h>.
Alas,  toolchains seem inconsistent in the decision when to warn about
shadowing of globals from system headers and when not to.  Hence, just
rename `optarg' -> `opt_arg'.

Fixes compiler warnings on Darwin and enables building.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-02-19 20:40:46 +01:00
Felix Singer
a5bdd8e8a4 flashprog: Change license from GPL2+ to GPL2
flashprog is licensed under GPLv2. So change it accordingly.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-02-19 20:40:46 +01:00
Felix Singer
a8368cf6df flashprog: Install udev rules
Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-02-19 20:40:46 +01:00
Felix Singer
70d7943da7 flashprog: switch over to Meson build system (#378140)
flashprog: Switch over to Meson build system

With Meson, it's not needed to specify much configuration options and if
not specified otherwise the the flashprog build system uses auto detection
for supported programmers using the found libraries.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-02-01 22:14:17 +01: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
Felix Singer
a83c3c5546 flashprog: 1.2 -> 1.3
Release notes: https://flashprog.org/wiki/Flashprog/v1.3

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2024-11-13 18:02:48 +01: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
Funkeleinhorn
4b632e63b4 flashprog: add funkeleinhorn as maintainer 2024-09-07 14:33:33 +02:00
Felix Singer
70c79190d9 flashprog: 1.1 -> 1.2
Signed-off-by: Felix Singer <felixsinger@posteo.net>
2024-08-21 02:10:19 +02:00
Felix Singer
0150af1a6c flashprog: 1.0.1 -> 1.1
Signed-off-by: Felix Singer <felixsinger@posteo.net>
2024-05-06 20:42:11 +02:00
Funkeleinhorn
306fe56f63 flashprog: refactor make jlink and gpio support configurable 2024-03-25 00:34:14 +01:00
Felix Singer
18cf4d44dc Rename package flashrom-stable to flashprog
flashprog, formerly flashrom-stable, got separated and is its own
project now. Thus, rename the formerly known package flashrom-stable to
flashprog and adjust all references and meta data.

Update to the newest available release 1.0.1.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2024-03-01 21:36:41 +01:00