me
/
guix
Archived
1
0
Fork 0

gnu: nix: Look for configuration in /etc.

Fixes <http://issues.guix.gnu.org/41704>.

* gnu/packages/package-management.scm (nix)[arguments]: Add
‘--sysconfdir=/etc’ configure flag and override it during installation.

Requested-and-tested-by: Peng Mei Yu <pengmeiyu@riseup.net>
master
Tobias Geerinckx-Rice 2020-06-16 13:17:40 +02:00
parent 38ee8f7dba
commit b6329d026b
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 15 additions and 0 deletions

View File

@ -551,6 +551,21 @@ out) and returning a package that uses that as its 'source'."
(base32 (base32
"1hbqsrp1ii2sfq8x2mahjrl2182qck76n8blrl1jfz3xq99m6i15")))) "1hbqsrp1ii2sfq8x2mahjrl2182qck76n8blrl1jfz3xq99m6i15"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments
`(#:configure-flags
(list "--sysconfdir=/etc")
#:phases
(modify-phases %standard-phases
(replace 'install
;; Don't try & fail to create subdirectories in /etc, but keep them
;; in the output as examples.
(lambda* (#:key (make-flags '()) outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(etc (string-append out "/etc")))
(apply invoke "make" "install"
(string-append "sysconfdir=" etc)
(string-append "profiledir=" etc "/profile.d")
make-flags)))))))
(native-inputs `(("pkg-config" ,pkg-config))) (native-inputs `(("pkg-config" ,pkg-config)))
(inputs `(("boost" ,boost) (inputs `(("boost" ,boost)
("brotli" ,brotli) ("brotli" ,brotli)