diff options
| author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2025-05-22 09:50:55 +0900 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2025-08-17 22:34:42 +0200 |
| commit | a4be3b9191424b679468e71fbe4fa77f06e6ab90 (patch) | |
| tree | ad93a77640bd12e06974fd65870670de77fe1140 | |
| parent | af9e540b716402df983935eeabedc4572d6565ce (diff) | |
gnu: nss: Use gexp variables in install phase.
* gnu/packages/nss.scm (nss) [#:phases]: Use gexp variables in install phase.
Change-Id: I16d9d31669d30ae0a9171f677525470152bab07d
| -rw-r--r-- | gnu/packages/nss.scm | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gnu/packages/nss.scm b/gnu/packages/nss.scm index 873e661dab3..0f406a1f1f0 100644 --- a/gnu/packages/nss.scm +++ b/gnu/packages/nss.scm @@ -234,25 +234,23 @@ in the Mozilla clients.") release-date "./nss/tests/all.sh"))) (format #t "test suite not run~%")))) (replace 'install - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (bin (string-append (assoc-ref outputs "bin") "/bin")) - (inc (string-append out "/include/nss")) - (lib (string-append out "/lib/nss")) + (lambda _ + (let* ((inc (string-append #$output "/include/nss")) + (lib (string-append #$output "/lib/nss")) (obj (match (scandir "dist" (cut string-suffix? "OBJ" <>)) ((obj) (string-append "dist/" obj))))) ;; Install nss-config to $out/bin. (install-file (string-append obj "/bin/nss-config") - (string-append out "/bin")) + (string-append #$output "/bin")) (delete-file (string-append obj "/bin/nss-config")) ;; Install nss.pc to $out/lib/pkgconfig. (install-file (string-append obj "/lib/pkgconfig/nss.pc") - (string-append out "/lib/pkgconfig")) + (string-append #$output "/lib/pkgconfig")) (delete-file (string-append obj "/lib/pkgconfig/nss.pc")) (rmdir (string-append obj "/lib/pkgconfig")) ;; Install other files. (copy-recursively "dist/public/nss" inc) - (copy-recursively (string-append obj "/bin") bin) + (copy-recursively (string-append obj "/bin") #$output:bin) (copy-recursively (string-append obj "/lib") lib))))))) (inputs (list sqlite zlib)) (propagated-inputs (list nspr)) ;required by nss.pc. |
