gnu: nix: Don't propagate Perl libraries.
* gnu/packages/package-management.scm (nix): Move perl-www-curl, perl-dbi and perl-dbd-sqlite from 'propagated-inputs' to 'inputs'. [arguments]: Add #:configure-flags.
This commit is contained in:
parent
f888502cfa
commit
9083788a29
1 changed files with 17 additions and 4 deletions
|
@ -251,16 +251,29 @@ (define-public nix
|
||||||
;; XXX: Should we pass '--with-store-dir=/gnu/store'? But then we'd also
|
;; XXX: Should we pass '--with-store-dir=/gnu/store'? But then we'd also
|
||||||
;; need '--localstatedir=/var'. But then! The thing would use /var/nix
|
;; need '--localstatedir=/var'. But then! The thing would use /var/nix
|
||||||
;; instead of /var/guix. So in the end, we do nothing special.
|
;; instead of /var/guix. So in the end, we do nothing special.
|
||||||
|
(arguments
|
||||||
|
'(#:configure-flags
|
||||||
|
;; Set the prefixes of Perl libraries to avoid propagation.
|
||||||
|
(let ((perl-libdir (lambda (p)
|
||||||
|
(string-append
|
||||||
|
(assoc-ref %build-inputs p)
|
||||||
|
"/lib/perl5/site_perl"))))
|
||||||
|
(list (string-append "--with-dbi="
|
||||||
|
(perl-libdir "perl-dbi"))
|
||||||
|
(string-append "--with-dbd-sqlite="
|
||||||
|
(perl-libdir "perl-dbd-sqlite"))
|
||||||
|
(string-append "--with-www-curl="
|
||||||
|
(perl-libdir "perl-www-curl"))))))
|
||||||
(native-inputs `(("perl" ,perl)
|
(native-inputs `(("perl" ,perl)
|
||||||
("pkg-config" ,pkg-config)))
|
("pkg-config" ,pkg-config)))
|
||||||
(inputs `(("curl" ,curl)
|
(inputs `(("curl" ,curl)
|
||||||
("openssl" ,openssl)
|
("openssl" ,openssl)
|
||||||
("libgc" ,libgc)
|
("libgc" ,libgc)
|
||||||
("sqlite" ,sqlite)
|
("sqlite" ,sqlite)
|
||||||
("bzip2" ,bzip2)))
|
("bzip2" ,bzip2)
|
||||||
(propagated-inputs `(("perl-www-curl" ,perl-www-curl)
|
("perl-www-curl" ,perl-www-curl)
|
||||||
("perl-dbi" ,perl-dbi)
|
("perl-dbi" ,perl-dbi)
|
||||||
("perl-dbd-sqlite" ,perl-dbd-sqlite)))
|
("perl-dbd-sqlite" ,perl-dbd-sqlite)))
|
||||||
(home-page "http://nixos.org/nix/")
|
(home-page "http://nixos.org/nix/")
|
||||||
(synopsis "The Nix package manager")
|
(synopsis "The Nix package manager")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue