me
/
guix
Archived
1
0
Fork 0

gnu: criu: Delete static libraries.

* gnu/packages/virtualization.scm (criu)[arguments]:
Add a new 'delete-static-libraries phase.
master
Tobias Geerinckx-Rice 2021-10-03 23:52:39 +02:00
parent b4d02219da
commit a47ce1e0e7
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 6 additions and 1 deletions

View File

@ -1623,7 +1623,12 @@ domains, their live performance and resource utilization statistics.")
"/site-packages:"
(getenv "PYTHONPATH"))))
(wrap-program (string-append out "/bin/crit")
`("PYTHONPATH" ":" prefix (,path)))))))))
`("PYTHONPATH" ":" prefix (,path))))))
(add-after 'install 'delete-static-libraries
;; Not building/installing these at all doesn't seem to be supported.
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(for-each delete-file (find-files out "\\.a$"))))))))
(inputs
`(("protobuf" ,protobuf)
("python" ,python-2)