diff options
| author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2025-05-22 10:39:00 +0900 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2025-08-17 22:34:42 +0200 |
| commit | 50f65b553d2f5ebccb5f8a0ae41fb99077e362f6 (patch) | |
| tree | ddddb30bfc08c77d1bbeeac51dfe174c3115f082 | |
| parent | a4be3b9191424b679468e71fbe4fa77f06e6ab90 (diff) | |
gnu: nss: Add static output.
* gnu/packages/nss.scm (nss) [outputs]: Add static output.
[#:phases] {move-static-archives}: New phase.
Change-Id: I2665debbec31d5906d1093fa2aa6ac6b4b4cacb2
| -rw-r--r-- | gnu/packages/nss.scm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gnu/packages/nss.scm b/gnu/packages/nss.scm index 0f406a1f1f0..13dffa49667 100644 --- a/gnu/packages/nss.scm +++ b/gnu/packages/nss.scm @@ -134,7 +134,7 @@ in the Mozilla clients.") (delete-file-recursively "nss/lib/zlib") (delete-file-recursively "nss/lib/sqlite"))))) (build-system gnu-build-system) - (outputs '("out" "bin")) + (outputs '("out" "bin" "static")) ;11 MiB of static archives (arguments (list #:make-flags @@ -251,7 +251,15 @@ in the Mozilla clients.") ;; Install other files. (copy-recursively "dist/public/nss" inc) (copy-recursively (string-append obj "/bin") #$output:bin) - (copy-recursively (string-append obj "/lib") lib))))))) + (copy-recursively (string-append obj "/lib") lib)))) + (add-after 'install 'move-static-archives + (lambda _ + (with-directory-excursion #$output + (for-each (lambda (f) + (install-file f + (string-append #$output:static + "/" (dirname f)))) + (find-files "." "\\.a$")))))))) (inputs (list sqlite zlib)) (propagated-inputs (list nspr)) ;required by nss.pc. (native-inputs (list perl ;for tests |
