[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Subtituting location of ca-certificates.crt

From: Phil Beadling
Subject: Subtituting location of ca-certificates.crt
Date: Fri, 24 Sep 2021 16:34:09 +0100

Hi all,

I have a package defintion that needs to the know the location of
ca-certificates.crt at build time.  I've resolved similar problems before
by patching the location of certs after the unpack stage to match the
location of nss-certs (see below).

However, it looks like the actual cert bundle file is not part of nss-certs
ca-certificates.crt ->

ca-certificate-bundle isn't a regular package that I can reference like

I can find it defined in the source code here:

If this file only exists in a profile how can I know it's location at build


Approach taken when the directory is required rather than the bundle:

       (modify-phases %standard-phases
         ;; Patch SSL Certs to use nss-certs location
         (add-after 'unpack 'patch-certs
           (lambda* (#:key inputs #:allow-other-keys)
             (substitute* "app/foo/main.cpp"
               (("/etc/ssl/certs") ;; by default app runs off Ubuntu
                (string-append (assoc-ref inputs "nss-certs")

reply via email to

[Prev in Thread] Current Thread [Next in Thread]