YubiKey-Guide: NixOS Build Broken
While following the NixOS build instructions I came across a few issues:
Building initially gave an error
error: experimental Nix feature ‘nix-command’ is disabled; use ‘–extra-experimental-features nix-command’ to override
I was able to fix this by using nix --extra-experimental-features nix-command build -f yubikey-installer.nix -o installer nixos-yubikey
The next issue was I got an error about yubioath-desktop being deprecated
error: yubioath-desktop has been deprecated by upstream in favor of yubioath-flutter
I was able to fix that by replacing yubioath-desktop with yubioath-flutter
The final issue I have is
error: builder for ‘/nix/store/g7pw6yjayp9qxmbh72b8pwx82j1jxq2v-hopenpgp-tools-0.23.7.drv’ failed with exit code 1; last 10 log lines: In an equation for ‘spGetSCT’: Patterns of type ‘Pkt’ not matched: PKESKPkt _ _ _ _ SKESKPkt _ _ _ _ OnePassSignaturePkt _ _ _ _ _ _ SecretKeyPkt _ _ … | 211 | spGetSCT (SignaturePkt s) = fmap fromIntegral (sigCT s) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ For full logs, run ‘nix log /nix/store/g7pw6yjayp9qxmbh72b8pwx82j1jxq2v-hopenpgp-tools-0.23.7.drv’.
It looks like hopengpg-tools is broken for nix? https://github.com/NixOS/nixpkgs/blob/6f3728df507fd1683cf16e49a0078dc800330259/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml
https://github.com/NixOS/nixpkgs/search?q=hopenpgp&type=issues
I just wanted to open this issue to see if anyone has solved this. In the meantime, I’ll keep researching and if I can get it working, I’ll post a PR.
Thanks for this great guide drduh! And thanks to everyone else who has contributed
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 19 (5 by maintainers)
Commits related to this issue
- fix: update `hopenpgp-tools` in the NixOS build Fixes https://github.com/drduh/YubiKey-Guide/issues/370. — committed to zeorin/YubiKey-Guide by zeorin 9 months ago
- fix: update `hopenpgp-tools` in the NixOS build Fixes https://github.com/drduh/YubiKey-Guide/issues/370. — committed to zeorin/YubiKey-Guide by zeorin 9 months ago
- unbreak hopenpgp-tools Refs https://github.com/drduh/YubiKey-Guide/issues/370 Refs https://github.com/drduh/YubiKey-Guide/issues/406 — committed to motiejus/nixpkgs by motiejus 6 months ago
- haskellPackages.hopengpg-tools: Unmark broken https://github.com/drduh/YubiKey-Guide/issues/370 https://github.com/drduh/YubiKey-Guide/issues/406 — committed to motiejus/nixpkgs by motiejus 6 months ago
- haskellPackages.hopengpg-tools: Unmark broken https://github.com/drduh/YubiKey-Guide/issues/370 https://github.com/drduh/YubiKey-Guide/issues/406 — committed to motiejus/nixpkgs by motiejus 6 months ago
- haskellPackages.hopengpg-tools: Unmark broken https://github.com/drduh/YubiKey-Guide/issues/370 https://github.com/drduh/YubiKey-Guide/issues/406 — committed to motiejus/nixpkgs by motiejus 6 months ago
- haskellPackages.hopengpg-tools: Unmark broken https://github.com/drduh/YubiKey-Guide/issues/370 https://github.com/drduh/YubiKey-Guide/issues/406 — committed to motiejus/nixpkgs by motiejus 6 months ago
- haskellPackages.hopengpg-tools: Unmark broken https://github.com/drduh/YubiKey-Guide/issues/370 https://github.com/drduh/YubiKey-Guide/issues/406 — committed to motiejus/nixpkgs by motiejus 6 months ago
- haskellPackages.hopengpg-tools: Unmark broken https://github.com/drduh/YubiKey-Guide/issues/370 https://github.com/drduh/YubiKey-Guide/issues/406 (cherry picked from commit 5a098d2cb6db1815c62f76fdf6... — committed to motiejus/nixpkgs by motiejus 6 months ago
Nixos 22.05 is now deprecated (and so is 22.11 at the time of writing, long live 23.05!)
If it is desirable, I will make a PR to pin nixpkgs to the current stable version of Nixos.
I’ve figured that I was asking 25.03 instead of 23.05, hence the problem