Skip to content

linuxPackages.sp_smapi: install module through modules_install - #595556

Open
giorgiga wants to merge 1 commit into
NixOS:masterfrom
giorgiga:sp_smapi-nixos-26.11
Open

giorgiga wants to merge 1 commit into
NixOS:masterfrom
giorgiga:sp_smapi-nixos-26.11

Conversation

@giorgiga

@giorgiga giorgiga commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

sp_smapi fails to install on 26.11, due to .ko.cer files not being generated.

building '/nix/store/qvdzvdmva3a5nhgh0xhk6vsnz139h8h5-linux-6.18.65-modules.drv'...
error: builder for '/nix/store/qvdzvdmva3a5nhgh0xhk6vsnz139h8h5-linux-6.18.65-modules.drv' failed with exit code 123;
       last 5 log lines:
       > created 151 symlinks in user environment
       > kernel version is 6.18.65
       > cat: kernel/drivers/firmware/tp_smapi.ko.cer: No such file or directory
       > cat: kernel/drivers/firmware/thinkpad_ec.ko.cer: No such file or directory
       > cat: kernel/drivers/firmware/hdapsd.ko.cer: No such file or directory
       For full logs, run 'nix log /nix/store/qvdzvdmva3a5nhgh0xhk6vsnz139h8h5-linux-6.18.65-modules.drv'.
error: 1 dependencies of derivation '/nix/store/wa4yn6sjl0zv2qay09ns7pkxmwgfrz2s-nixos-system-x220-26.11-2517139-dirty-2026-11-29.2052Z.drv' failed to build

This updates the sp_smapi package to use modules_install, which generates the missing .ko.cer files and allows the drivers to be used with nixos 26.11.

❱ nix build --file . linuxPackages.tp_smapi ; tree result/
result/
└── lib
    └── modules
        └── 6.18.65
            └── kernel
                └── drivers
                    └── firmware
                        ├── hdaps.ko.cer
                        ├── hdaps.ko.xz
                        ├── thinkpad_ec.ko.cer
                        ├── thinkpad_ec.ko.xz
                        ├── tp_smapi.ko.cer
                        └── tp_smapi.ko.xz

Things done

@giorgiga

Copy link
Copy Markdown
Contributor Author

This needs to be ported to 26.11. I'm not familiar with the procedure, so please advise if there's anything specific I need to do for that to happen.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! labels Nov 30, 2026
@giorgiga
giorgiga requested a review from kyehn December 1, 2026 00:26
@nixpkgs-ci nixpkgs-ci Bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant