Commit Graph

114 Commits

Author SHA1 Message Date
Raito Bezarius
06994a3768 fwupd: move EFI app location in /run
This introduces a breaking change where the default location for EFI
apps are now in /run/fwupd-efi.

This is not breaking for lanzaboote users who already had the
environment variable setting but this setting was removed in
https://github.com/fwupd/fwupd/pull/9846.

Since 2.1.6 this no longer needs a meson.build patch: upstream exposes
the location as the `efi_app_location` meson option, which we already
set to point at the fwupd-efi store path. Point it at the runtime
directory instead; the NixOS module populates it from
`fwupd.fwupd-efi`.

Ref: https://github.com/fwupd/fwupd/issues/10202
Change-Id: Ie058ece7d284cbce960fdf0ce14a151f1cf269ca
Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
Co-authored-by: Aliaksandr <grubian2@gmail.com>

Assisted-by: claude-code with claude-opus-5[1m]-high
2026-08-16 01:24:15 +03:00
r-vdp
855daad60b fwupd: drop valgrind build dep
This is not actually used anymore upstream, we can drop
the option completely once upstream removes it.
2026-08-11 12:44:24 +02:00
Weijia Wang
349ecf5e96 fwupd: fix loongarch64-linux build 2026-08-10 23:03:37 +02:00
Peder Bergebakken Sundt
a0d022d0f4 treewide: use finalAttrs.finalPackage.doCheck 2026-07-18 18:23:21 +02:00
Eman Resu
ff094f60ad treewide: replace more singleton license lists 2026-07-15 14:04:39 -04:00
r-vdp
85fc5a135e fwupd: fix seal check rejecting files on tmpfs
Backport the upstream fix, to be removed when updating to 2.1.7.
2026-07-12 14:05:43 +02:00
r-vdp
c44229527a fwupd: clarify efi_app_location comment 2026-07-12 14:05:19 +02:00
kashw2
e3469ceba1 fwupd: 2.1.5 -> 2.1.6; remove efi patch 2026-07-09 18:09:12 +10:00
2kybe3
af24e675e5 treewide: follow some GitHub redirects for fetchFromGitHub
generated using https://git.kybe.xyz/2kybe3/nixpkgs-github-redirect

continuation of: #537889
2026-07-03 12:37:01 +02:00
Thomas Mühlbacher
7bce8db1d7 fwupd: 2.1.4 -> 2.1.5
Diff: https://github.com/fwupd/fwupd/compare/2.1.4...2.1.5

Changelog: https://github.com/fwupd/fwupd/releases/tag/2.1.5
2026-06-11 19:17:37 +02:00
Thomas Mühlbacher
2a1a3ccc39 fwupd: move patch descriptions 2026-06-11 19:17:37 +02:00
Ramses
e0f1741d33 fwupd: 2.1.1 -> 2.1.4 (#513368) 2026-05-31 15:11:55 +00:00
Thomas Mühlbacher
b7768d8a71 fwupd: 2.1.3 -> 2.1.4
2.1.4 and 2.1.4-2 point to the same commit, but the GH release was done
with -2.

Diff: https://github.com/fwupd/fwupd/compare/2.1.3...2.1.4

Changelog: https://github.com/fwupd/fwupd/releases/tag/2.1.4-2
2026-05-31 02:51:53 +02:00
Thomas Mühlbacher
1d37a606a9 fwupd: 2.1.2 -> 2.1.3
Diff: https://github.com/fwupd/fwupd/compare/2.1.2...2.1.3

Changelog: https://github.com/fwupd/fwupd/releases/tag/2.1.3
2026-05-30 15:03:38 +02:00
Thomas Mühlbacher
6fe7674824 fwupd: rm superfluous meson feature enable flags
Because stdenv instructs meson to enable all features automatically,
it's redundant to have any lib.mesonEnable that just sets a literal
true. Keeping the `supported_build` feature flag to explicitly convey
the intention behind it.
2026-04-25 15:11:19 +02:00
Thomas Mühlbacher
536344fcfb fwupd: put jcat-tool on path for tests 2026-04-25 15:11:19 +02:00
Thomas Mühlbacher
e7fe386d33 fwupd: 2.1.1 -> 2.1.2
Diff: https://github.com/fwupd/fwupd/compare/2.1.1...2.1.2

Changelog: https://github.com/fwupd/fwupd/releases/tag/2.1.2
2026-04-25 15:11:19 +02:00
R. Ryantm
82f3bc09af fwup: 1.15.0 -> 1.15.1 2026-04-25 08:32:43 +00:00
nixpkgs-ci[bot]
e8ecf89184 Merge master into staging-next 2026-04-15 06:38:38 +00:00
r-vdp
8a8dd3e060 fwupd: only enable HSI on x86
Upstream auto-disables the `hsi` meson feature on non-x86 hosts, but
nixpkgs' meson setup hook passes `-Dauto_features=enabled` which
overrides that and force-enables it everywhere. With HSI compiled in,
`fwupdtool security` succeeds on aarch64 while the installed test
script expects it to fail on non-x86, so `fwupdtool.test` has been
broken on Hydra/aarch64-linux since fwupd 2.0.17.

Explicitly mirror upstream's auto behaviour so the installed tests
match their expectations again.
2026-04-09 14:19:36 +02:00
Thomas Mühlbacher
4ccbe12a71 fwupd: 2.0.19 -> 2.1.1
Diff: https://github.com/fwupd/fwupd/compare/2.0.19...2.1.1

Changelog: https://github.com/fwupd/fwupd/releases/tag/2.1.1

Co-developed-by: Daniel Schaefer <git@danielschaefer.me>
Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
Signed-off-by: Thomas Mühlbacher <tmuehlbacher@posteo.net>
2026-03-28 15:52:46 +01:00
Victor Engmark
c4f5dfad0d treewide: Remove continuation escape at end of commands
To avoid confusion and spurious newlines in the output.

Found by searching for a backslash followed by a newline, some
indentation, and then the end of multi-line string marker, using the
following extended regex:

```regex
\\\n +'';
```
2026-03-17 16:47:55 +01:00
Petr Portnov
f99a5f5c57 fw: add nix-update-script 2026-03-06 17:50:56 +03:00
Petr Portnov
daf9ec3a12 fw: add progrm_jarvis to maintainers 2026-03-06 17:50:51 +03:00
Fernando Rodrigues
693e12715a various: switch buildGoModule packages to use finalAttrs (#487704) 2026-02-07 09:35:52 +00:00
Fernando Rodrigues
169ab49f59 various: fix pname misuse and switch to finalAttrs pattern (#487638) 2026-02-07 09:20:32 +00:00
quantenzitrone
626f23ce26 various: switch packages to use finalAttrs
this shouldn't create any rebuilds

the following script was used to generate this:
```fish
#!/usr/bin/env fish

# nix shell .#nixfmt nixpkgs#{nixf-diagnose,ripgrep,sd}

set base (git rev-parse HEAD)

set scope pkgs/by-name

set files (rg --files-with-matches -F 'stdenv.mkDerivation rec {' $scope | sort -u)

for file in $files
    echo $file
    sd -F 'stdenv.mkDerivation rec {' 'stdenv.mkDerivation (finalAttrs: {' $file
    # version
    sd -F 'version}' 'finalAttrs.version}' $file
    sd -F '${version' '${finalAttrs.version' $file
    sd -F '= version' '= finalAttrs.version' $file
    sd -F 'inherit version;' 'inherit (finalAttrs) version;' $file
    sd -F ' + version;' ' + finalAttrs.version;' $file
    sd 'replaceStrings (.*) version' 'replaceStrings $1 finalAttrs.version' $file
    sd -F 'splitVersion version' 'splitVersion finalAttrs.version' $file
    sd -F 'versionAtLeast version' 'versionAtLeast finalAttrs.version' $file
    sd 'versions\.([a-z]+) version' 'versions.$1 finalAttrs.version' $file
    # src
    sd -F 'src}' 'finalAttrs.src}' $file
    sd -F '${src' '${finalAttrs.src' $file
    sd -F '= src' '= finalAttrs.src' $file
    sd -F 'inherit src;' 'inherit (finalAttrs) src;' $file
    sd -F 'inherit (src' 'inherit (finalAttrs.src' $file
    # meta
    sd -F '${meta' '${finalAttrs.meta' $file
    sd -F '= meta' '= finalAttrs.meta' $file
    sd -F 'inherit (meta' 'inherit (finalAttrs.meta' $file
    # other
    sd -F 'inherit version src;' 'inherit (finalAttrs) version src;' $file
    sd -F 'makeLibraryPath buildInputs' 'makeLibraryPath finalAttrs.buildInputs' $file
    sd -F 'buildInputs}' 'finalAttrs.buildInputs}' $file
    sd -F 'desktopItem}' 'finalAttrs.desktopItem}' $file
    sd -F 'runtimeLibs}' 'finalAttrs.runtimeLibs}' $file
    sd -F 'libPath}' 'finalAttrs.libPath}' $file
    sd -F 'runtimeDependencies}' 'finalAttrs.runtimeDependencies}' $file
    sd -F 'nativeRuntimeInputs}' 'finalAttrs.nativeRuntimeInputs}' $file
    sd -F '(!doCheck)' '(!finalAttrs.doCheck)' $file
    sd -F 'optional doCheck' 'optional finalAttrs.doCheck' $file
    sd -F 'optionals doCheck' 'optionals finalAttrs.doCheck' $file
    sd -F '++ runtimeDependencies' '++ finalAttrs.runtimeDependencies' $file
    # pname (restored afterwards)
    sd -F 'pname}' 'finalAttrs.pname}' $file
    sd -F '${pname' '${finalAttrs.pname' $file
    sd -F '= pname' '= finalAttrs.pname' $file
    # close finalAttrs lambda
    echo ')' >>$file
    # catch some errors early
    if ! nixfmt $file
        git restore $file
        continue
    end
    if ! nixf-diagnose -i sema-primop-overridden $file
        git restore $file
        continue
    end
end

set torestore (rg -F .finalAttrs --files-with-matches $scope)
if test (count $torestore) -gt 0
    git restore $torestore
end
set torestore (rg -F finalAttrs.pname --files-with-matches $scope)
if test (count $torestore) -gt 0
    git restore $torestore
end

# commit for faster eval times
git add pkgs
git commit --no-gpg-sign -m temp
set torestore

for file in $files
    # file hasn't changed
    if git diff --quiet $base $file
        continue
    end
    # try to eval the package to definitely catch all errors
    echo $file
    set pname (string split / $file -f 4)
    if ! nix eval .#$pname
        set torestore $torestore $file
    end
end

# restore files that don't eval
git reset --soft $base
git restore --staged .
if test (count $torestore) -gt 0
    git restore $torestore
end
```

after that some manual cleanup was done:
- restoring files that cause changes in the number of lines
- restoring files that cause rebuilds
- restoring files that cause merge conflicts with staging
2026-02-07 09:59:05 +01:00
quantenzitrone
d26a1a9e5e various: switch buildRustPackage packages to use finalAttrs
this shouldn't create any rebuilds

the following script was used to generate this:
```fish
#!/usr/bin/env fish

# nix shell .#nixfmt nixpkgs#{nixf-diagnose,ripgrep,sd}

set base (git rev-parse HEAD)

set scope pkgs/by-name
set builder buildRustPackage

set files (rg --files-with-matches -F "$builder rec {" $scope | sort -u)

for file in $files
    echo $file
    sd -F "$builder rec {" "$builder (finalAttrs: {" $file
    # version
    sd -F 'version}' 'finalAttrs.version}' $file
    sd -F '${version' '${finalAttrs.version' $file
    sd -F '= version' '= finalAttrs.version' $file
    sd -F 'inherit version;' 'inherit (finalAttrs) version;' $file
    sd -F ' + version;' ' + finalAttrs.version;' $file
    sd 'replaceStrings (.*) version' 'replaceStrings $1 finalAttrs.version' $file
    sd -F 'splitVersion version' 'splitVersion finalAttrs.version' $file
    sd -F 'versionAtLeast version' 'versionAtLeast finalAttrs.version' $file
    sd 'versions\.([a-z]+) version' 'versions.$1 finalAttrs.version' $file
    # src
    sd -F 'src}' 'finalAttrs.src}' $file
    sd -F '${src' '${finalAttrs.src' $file
    sd -F '= src' '= finalAttrs.src' $file
    sd -F 'inherit src;' 'inherit (finalAttrs) src;' $file
    sd -F 'inherit (src' 'inherit (finalAttrs.src' $file
    # meta
    sd -F '${meta' '${finalAttrs.meta' $file
    sd -F '= meta' '= finalAttrs.meta' $file
    sd -F 'inherit (meta' 'inherit (finalAttrs.meta' $file
    # other
    sd -F 'inherit version src;' 'inherit (finalAttrs) version src;' $file
    sd -F 'inherit src version;' 'inherit (finalAttrs) src version;' $file
    sd -F 'makeLibraryPath buildInputs' 'makeLibraryPath finalAttrs.buildInputs' $file
    sd -F 'buildInputs}' 'finalAttrs.buildInputs}' $file
    sd -F 'desktopItem}' 'finalAttrs.desktopItem}' $file
    sd -F 'runtimeLibs}' 'finalAttrs.runtimeLibs}' $file
    sd -F 'libPath}' 'finalAttrs.libPath}' $file
    sd -F 'runtimeDependencies}' 'finalAttrs.runtimeDependencies}' $file
    sd -F 'nativeRuntimeInputs}' 'finalAttrs.nativeRuntimeInputs}' $file
    sd -F '(!doCheck)' '(!finalAttrs.doCheck)' $file
    sd -F 'optional doCheck' 'optional finalAttrs.doCheck' $file
    sd -F 'optionals doCheck' 'optionals finalAttrs.doCheck' $file
    sd -F '++ runtimeDependencies' '++ finalAttrs.runtimeDependencies' $file
    # pname (restored afterwards)
    sd -F 'pname}' 'finalAttrs.pname}' $file
    sd -F '${pname' '${finalAttrs.pname' $file
    sd -F '= pname' '= finalAttrs.pname' $file
    # close finalAttrs lambda
    echo ')' >>$file
    # catch some errors early
    if ! nixfmt $file
        git restore $file
        continue
    end
    if ! nixf-diagnose -i sema-primop-overridden $file
        git restore $file
        continue
    end
end

set torestore (rg -F .finalAttrs --files-with-matches $scope)
if test (count $torestore) -gt 0
    git restore $torestore
end
set torestore (rg -F finalAttrs.pname --files-with-matches $scope)
if test (count $torestore) -gt 0
    git restore $torestore
end

# commit for faster eval times
git add pkgs
git commit --no-gpg-sign -m temp
set torestore

for file in $files
    # file hasn't changed
    if git diff --quiet $base $file
        continue
    end
    # try to eval the package to definitely catch all errors
    echo $file
    set pname (string split / $file -f 4)
    if ! nix eval .#$pname
        set torestore $torestore $file
    end
end

# restore files that don't eval
git reset --soft $base
git restore --staged .
if test (count $torestore) -gt 0
    git restore $torestore
end
```

after that some manual cleanup was done:
- restoring files that cause changes in the number of lines
- restoring files that cause rebuilds
- restoring files that cause merge conflicts with staging
2026-02-07 09:53:17 +01:00
quantenzitrone
9380e05c3c various: switch buildGoModule packages to use finalAttrs
this shouldn't create any rebuilds

the following script was used to generate this:
```fish
#!/usr/bin/env fish

# nix shell .#nixfmt nixpkgs#{nixf-diagnose,ripgrep,sd}

set base (git rev-parse HEAD)

set scope pkgs/by-name
set builder buildGoModule

set files (rg --files-with-matches -F "$builder rec {" $scope | sort -u)

for file in $files
    echo $file
    sd -F "$builder rec {" "$builder (finalAttrs: {" $file
    # version
    sd -F 'version}' 'finalAttrs.version}' $file
    sd -F '${version' '${finalAttrs.version' $file
    sd -F '= version' '= finalAttrs.version' $file
    sd -F 'inherit version;' 'inherit (finalAttrs) version;' $file
    sd -F ' + version;' ' + finalAttrs.version;' $file
    sd 'replaceStrings (.*) version' 'replaceStrings $1 finalAttrs.version' $file
    sd -F 'splitVersion version' 'splitVersion finalAttrs.version' $file
    sd -F 'versionAtLeast version' 'versionAtLeast finalAttrs.version' $file
    sd 'versions\.([a-z]+) version' 'versions.$1 finalAttrs.version' $file
    # src
    sd -F 'src}' 'finalAttrs.src}' $file
    sd -F '${src' '${finalAttrs.src' $file
    sd -F '= src' '= finalAttrs.src' $file
    sd -F 'inherit src;' 'inherit (finalAttrs) src;' $file
    sd -F 'inherit (src' 'inherit (finalAttrs.src' $file
    # meta
    sd -F '${meta' '${finalAttrs.meta' $file
    sd -F '= meta' '= finalAttrs.meta' $file
    sd -F 'inherit (meta' 'inherit (finalAttrs.meta' $file
    # other
    sd -F 'inherit version src;' 'inherit (finalAttrs) version src;' $file
    sd -F 'inherit src version;' 'inherit (finalAttrs) src version;' $file
    sd -F 'makeLibraryPath buildInputs' 'makeLibraryPath finalAttrs.buildInputs' $file
    sd -F 'buildInputs}' 'finalAttrs.buildInputs}' $file
    sd -F 'desktopItem}' 'finalAttrs.desktopItem}' $file
    sd -F 'runtimeLibs}' 'finalAttrs.runtimeLibs}' $file
    sd -F 'libPath}' 'finalAttrs.libPath}' $file
    sd -F 'runtimeDependencies}' 'finalAttrs.runtimeDependencies}' $file
    sd -F 'nativeRuntimeInputs}' 'finalAttrs.nativeRuntimeInputs}' $file
    sd -F '(!doCheck)' '(!finalAttrs.doCheck)' $file
    sd -F 'optional doCheck' 'optional finalAttrs.doCheck' $file
    sd -F 'optionals doCheck' 'optionals finalAttrs.doCheck' $file
    sd -F '++ runtimeDependencies' '++ finalAttrs.runtimeDependencies' $file
    # pname (restored afterwards)
    sd -F 'pname}' 'finalAttrs.pname}' $file
    sd -F '${pname' '${finalAttrs.pname' $file
    sd -F '= pname' '= finalAttrs.pname' $file
    # close finalAttrs lambda
    echo ')' >>$file
    # catch some errors early
    if ! nixfmt $file
        git restore $file
        continue
    end
    if ! nixf-diagnose -i sema-primop-overridden $file
        git restore $file
        continue
    end
end

set torestore (rg -F .finalAttrs --files-with-matches $scope)
if test (count $torestore) -gt 0
    git restore $torestore
end
set torestore (rg -F finalAttrs.pname --files-with-matches $scope)
if test (count $torestore) -gt 0
    git restore $torestore
end

# commit for faster eval times
git add pkgs
git commit --no-gpg-sign -m temp
set torestore

for file in $files
    # file hasn't changed
    if git diff --quiet $base $file
        continue
    end
    # try to eval the package to definitely catch all errors
    echo $file
    set pname (string split / $file -f 4)
    if ! nix eval .#$pname
        set torestore $torestore $file
    end
end

# restore files that don't eval
git reset --soft $base
git restore --staged .
if test (count $torestore) -gt 0
    git restore $torestore
end
```

after that some manual cleanup was done:
- restoring files that cause changes in the number of lines
- restoring files that cause rebuilds
- restoring files that cause merge conflicts with staging
2026-02-07 09:28:59 +01:00
quantenzitrone
6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00
Robert Schütz
e4d6ab21f5 fwup: add meta.changelog 2025-12-29 08:51:37 -08:00
R. Ryantm
759a15c0a8 fwup: 1.13.2 -> 1.15.0 2025-12-27 08:28:05 +00:00
Thomas Mühlbacher
43816f5cd4 fwupd: 2.0.18 -> 2.0.19
Diff: https://github.com/fwupd/fwupd/compare/2.0.18...2.0.19

Changelog: https://github.com/fwupd/fwupd/releases/tag/2.0.19
2025-12-19 13:43:21 +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
Thomas Mühlbacher
8642b0fb10 fwupd: 2.0.17 -> 2.0.18
Diff: https://github.com/fwupd/fwupd/compare/2.0.17...2.0.18

Changelog: https://github.com/fwupd/fwupd/releases/tag/2.0.18
2025-12-01 17:00:00 +01:00
Thomas Mühlbacher
4edbd6e95c fwupd: 2.0.16 -> 2.0.17
Diff: https://github.com/fwupd/fwupd/compare/2.0.16...2.0.17

Changelog: https://github.com/fwupd/fwupd/releases/tag/2.0.17
2025-11-12 00:52:41 +01:00
Thomas Mühlbacher
92646c16f9 fwupd: shape up patches
This makes it easier for others to apply the patches as commits using
just `git am` to rebase the patches for a new release.

These patch files were generated using the following format-patch
arguments `git format-patch --no-cover-letter --no-signature
--no-numbered --zero-commit -o .../nixpkgs/pkgs/by-name/fw/fwupd -M
origin/main`.
2025-11-05 21:03:12 +01:00
Michael Daniels
30420dabad treewide: drop figsoda as maintainer (part 2)
s/maintainers = with maintainers; [ figsoda ];/maintainers = with maintainers; [ ];/
2025-11-02 20:16:11 -05:00
Samuel Meenzen
44c8326873 fw-ectool: fix build 2025-10-07 16:03:17 +02:00
Matteo Pacini
8bae0a692a fwupd-efi: 1.7 -> 1.8 (#448252) 2025-10-06 10:30:27 +00:00
Wolfgang Walther
c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00
R. Ryantm
9e5be5a4ce fwupd-efi: 1.7 -> 1.8 2025-10-03 14:16:13 +00:00
Daniel Schaefer
ebe923b94e fwupd: add johnazoidberg as maintainer
I'm an active upstream contributor.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
2025-09-12 18:38:09 +02:00
Daniel Schaefer
5bb80d5207 fwupd: 2.0.15 -> 2.0.16
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Co-authored-by: r-vdp <ramses@well-founded.dev>
2025-09-12 18:37:40 +02:00
Thomas Mühlbacher
1b9fe3f92a fwupd: add libmnl for new devlink plugin
With this present, the plugin is automatically enabled.
2025-09-10 23:04:39 +02:00
Thomas Mühlbacher
231b392639 fwupd: 2.0.14 -> 2.0.15
Diff: https://github.com/fwupd/fwupd/compare/2.0.14...2.0.15

Changelog: https://github.com/fwupd/fwupd/releases/tag/2.0.15
2025-09-10 22:03:27 +02:00
Svenum
ff8238a54a fw-fanctrl: 1.0.3 -> 1.0.4 2025-09-02 10:46:23 +02:00
Gaetan Lepage
7922dc5527 fwupd: 2.0.13 -> 2.0.14
Diff: https://github.com/fwupd/fwupd/compare/2.0.13...2.0.14

Changelog: https://github.com/fwupd/fwupd/releases/tag/2.0.14
2025-08-31 13:53:33 +03:00
R. Ryantm
b94b1d6db1 fwup: 1.13.1 -> 1.13.2 2025-07-28 05:39:24 +00:00
TomaSajt
398b16e16c treewide: remove useFetchCargoVendor usages 2025-07-26 11:39:35 +02:00