mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
gnu: nss: Add static output.
* gnu/packages/nss.scm (nss) [outputs]: Add static output.
[#:phases] {move-static-archives}: New phase.
Change-Id: I2665debbec31d5906d1093fa2aa6ac6b4b4cacb2
This commit is contained in:
parent
a4be3b9191
commit
50f65b553d
1 changed files with 10 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue