Skip to content

autofirma: init at 1.9 - #563948

Open
vendul0g wants to merge 2 commits into
NixOS:masterfrom
vendul0g:autofirma
Open

vendul0g wants to merge 2 commits into
NixOS:masterfrom
vendul0g:autofirma

Conversation

@vendul0g

Copy link
Copy Markdown

Description of changes

Adds autofirma, the desktop electronic signature client of the Spanish
Government (Cliente @firma suite). It is required to sign documents and complete
procedures with Spanish public administrations, most of which only accept
signatures performed with AutoFirma.

The package repackages the official Debian release binaries from
https://firmaelectronica.gob.es/Home/Descargas.html. The archive contains
binary JARs only (no native code), reflected in
sourceProvenance = binaryBytecode.

Packaging notes:

  • The JARs look for NSS libraries under /usr/lib/firefox*; a small
    runCommand exposes nixpkgs' nss/nspr under that path inside a
    buildFHSEnv environment, so the JARs need no patching.
  • AutoFirma must write autofirma.pfx next to its JARs, which is impossible
    in the read-only Nix store, so the wrapper copies the JARs to
    ~/.local/share/autofirma on first run (re-copied when the package version
    changes).
  • An extra autofirma-setup wrapper runs AutoFirmaConfigurador and installs
    the AutoFirma root certificate into every detected NSS database. This is
    required on NixOS, where Firefox keeps its profiles under
    ~/.config/mozilla/firefox/ instead of the ~/.mozilla/firefox/ path the
    configurator assumes; without it, Firefox rejects AutoFirma's secure
    WebSocket.
  • Each upstream release is published under a versioned directory
    (.../descargas-software/autofirma19/...), which keeps the source URL stable
    and trackable. Older releases (≤ 1.8.3) live in unversioned URLs.

AI disclosure: this PR was prepared with the assistance of the opencode agent
(GLM-5.3). All changes were reviewed by the submitter, who ran and verified the
application, and validated with local builds, passthru.tests, treefmt and
nixpkgs-vet. The commit messages carry the required Assisted-by: trailers.

Things done

Assisted-by: opencode (glm-5.3)
AutoFirma is the electronic signature client of the Spanish Government
(Cliente @firma suite). It repackages the official Debian release
binaries (binary JARs only, no native code) inside a minimal FHS
environment, exposing nixpkgs nss/nspr under /usr/lib/firefox for the
JAR's NSS lookups, and provides an autofirma-setup wrapper that installs
the AutoFirma root certificate into NSS databases (needed on NixOS,
where Firefox profiles live in ~/.config/mozilla).

Assisted-by: opencode (glm-5.3)
@nixpkgs-ci nixpkgs-ci Bot added 12.first-time contribution This PR is the author's first one; please be gentle! 8.has: package (new) This PR adds a new package 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. llm-assisted Contributions that include code generation with LLMs 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` labels Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 8.has: package (new) This PR adds a new package 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.first-time contribution This PR is the author's first one; please be gentle! llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant