mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: libselinux: Install python bindings to separate output.
This reduces the closure size of glib from 203.1 to 111.3 MiB. * gnu/packages/selinux.scm (libselinux)[outputs]: New field. [arguments]: Set PYSITEDIR to the new "python" output.
This commit is contained in:
parent
ff1e80d791
commit
568d060327
1 changed files with 2 additions and 1 deletions
|
@ -131,6 +131,7 @@ (define-public checkpolicy
|
||||||
(define-public libselinux
|
(define-public libselinux
|
||||||
(package (inherit libsepol)
|
(package (inherit libsepol)
|
||||||
(name "libselinux")
|
(name "libselinux")
|
||||||
|
(outputs '("out" "python"))
|
||||||
(arguments
|
(arguments
|
||||||
(substitute-keyword-arguments (package-arguments libsepol)
|
(substitute-keyword-arguments (package-arguments libsepol)
|
||||||
((#:make-flags flags)
|
((#:make-flags flags)
|
||||||
|
@ -139,7 +140,7 @@ (define-public libselinux
|
||||||
(assoc-ref %build-inputs "libsepol")
|
(assoc-ref %build-inputs "libsepol")
|
||||||
"/lib/libsepol.a")
|
"/lib/libsepol.a")
|
||||||
(string-append "PYSITEDIR="
|
(string-append "PYSITEDIR="
|
||||||
(assoc-ref %outputs "out")
|
(assoc-ref %outputs "python")
|
||||||
"/lib/python"
|
"/lib/python"
|
||||||
,(version-major+minor (package-version python))
|
,(version-major+minor (package-version python))
|
||||||
"/site-packages/")
|
"/site-packages/")
|
||||||
|
|
Loading…
Reference in a new issue