gnu: thc-ipv6: Do not build with "-march=native".

* gnu/packages/networking.scm (thc-ipv6)[origin]: Add 'snippet'.
[properties]: New field.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Z572 2023-06-06 09:20:50 +03:00 committed by Efraim Flashner
parent 8937898af9
commit d6ae80c742
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -59,6 +59,7 @@
;;; Copyright © 2023 Sharlatan Hellseher <sharlatanus@gmail.com> ;;; Copyright © 2023 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2023 Bruno Victal <mirai@makinata.eu> ;;; Copyright © 2023 Bruno Victal <mirai@makinata.eu>
;;; Copyright © 2023 Yovan Naumovski <yovan@gorski.stream> ;;; Copyright © 2023 Yovan Naumovski <yovan@gorski.stream>
;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -3097,7 +3098,10 @@ (define-public thc-ipv6
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "07kwika1zdq62s5p5z94xznm77dxjxdg8k0hrg7wygz50151nzmx")))) (base32 "07kwika1zdq62s5p5z94xznm77dxjxdg8k0hrg7wygz50151nzmx"))
(modules '((guix build utils)))
(snippet '(begin (substitute* '("Makefile")
(("-march=native") ""))))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
(list (list
@ -3126,6 +3130,7 @@ (define-public thc-ipv6
libpcap libpcap
openssl openssl
perl)) perl))
(properties '((tunable? . #t)))
(home-page "https://github.com/vanhauser-thc/thc-ipv6") (home-page "https://github.com/vanhauser-thc/thc-ipv6")
(synopsis "IPv6 security research toolkit") (synopsis "IPv6 security research toolkit")
(description "The THC IPv6 Toolkit provides command-line tools and a library (description "The THC IPv6 Toolkit provides command-line tools and a library