mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-27 03:21:49 +02: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:
committed by
Andreas Enge
parent
a4be3b9191
commit
50f65b553d
+10
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user