gnu: rav1e: Omit static library.

* gnu/packages/video.scm (rav1e)[arguments]: Add phase.
This commit is contained in:
Marius Bakke 2022-02-10 10:14:47 +01:00
parent 0f1cb02362
commit 0d2f661501
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -22,7 +22,7 @@
;;; Copyright © 2017 Gregor Giesen <giesen@zaehlwerk.net>
;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@mykolab.com>
;;; Copyright © 2018 Roel Janssen <roel@gnu.org>
;;; Copyright © 2018, 2019, 2020, 2021 Marius Bakke <marius@gnu.org>
;;; Copyright © 2018-2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2018, 2019, 2020 Pierre Neidhardt <mail@ambrevar.xyz>
;;; Copyright © 2018, 2019, 2020 Leo Famulari <leo@famulari.name>
;;; Copyright © 2018 Brendan Tildesley <mail@brendan.scot>
@ -5322,7 +5322,12 @@ (define-public rav1e
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(invoke "cargo" "cinstall" "--release"
(string-append "--prefix=" out))))))))
(string-append "--prefix=" out)))))
(add-after 'install 'delete-static-library
(lambda* (#:key outputs #:allow-other-keys)
;; Delete 80 MiB (!) static library.
(delete-file (string-append (assoc-ref outputs "out")
"/lib/librav1e.a")))))))
(native-inputs
`(("cargo-c" ,rust-cargo-c)
("nasm" ,nasm)))