autofirma: init at 1.9 - #563948
Open
vendul0g wants to merge 2 commits into
Open
autofirma: init at 1.9#563948vendul0g wants to merge 2 commits into
vendul0g wants to merge 2 commits into
Conversation
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes
Adds
autofirma, the desktop electronic signature client of the SpanishGovernment (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:
/usr/lib/firefox*; a smallrunCommandexposes nixpkgs'nss/nsprunder that path inside abuildFHSEnvenvironment, so the JARs need no patching.autofirma.pfxnext to its JARs, which is impossiblein the read-only Nix store, so the wrapper copies the JARs to
~/.local/share/autofirmaon first run (re-copied when the package versionchanges).
autofirma-setupwrapper runsAutoFirmaConfiguradorand installsthe 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 theconfigurator assumes; without it, Firefox rejects AutoFirma's secure
WebSocket.
(
.../descargas-software/autofirma19/...), which keeps the source URL stableand 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 andnixpkgs-vet. The commit messages carry the requiredAssisted-by:trailers.Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.