mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: libgit2: Avoid dependency on cURL.
This reduces the closure size from 225 MiB to 80 MiB, while still supporting HTTP(S) access. * gnu/packages/version-control.scm (libgit2)[source](modules, snippet): New fields. [inputs]: Remove CURL; add HTTP-PARSER.
This commit is contained in:
parent
6ee797f326
commit
53d26163c6
1 changed files with 6 additions and 2 deletions
|
@ -370,7 +370,11 @@ (define-public libgit2
|
|||
(sha256
|
||||
(base32
|
||||
"1b3figbhp5l83vd37vq6j2narrq4yl9pfw6mw0px0dzb1hz3jqka"))
|
||||
(patches (search-patches "libgit2-0.25.1-mtime-0.patch"))))
|
||||
(patches (search-patches "libgit2-0.25.1-mtime-0.patch"))
|
||||
|
||||
;; Remove bundled software.
|
||||
(snippet '(delete-file-recursively "deps"))
|
||||
(modules '((guix build utils)))))
|
||||
(build-system cmake-build-system)
|
||||
(outputs '("out" "debug"))
|
||||
(arguments
|
||||
|
@ -390,7 +394,7 @@ (define-public libgit2
|
|||
(lambda _ (zero? (system* "./libgit2_clar" "-v" "-Q")))))))
|
||||
(inputs
|
||||
`(("libssh2" ,libssh2)
|
||||
("libcurl" ,curl)
|
||||
("http-parser" ,http-parser)
|
||||
("python" ,python-wrapper)))
|
||||
(native-inputs
|
||||
`(("pkg-config" ,pkg-config)))
|
||||
|
|
Loading…
Reference in a new issue