From 724960a2642af6e3328b0e3de6b79344e895fb6b Mon Sep 17 00:00:00 2001 From: guix-patches--- via Date: Sun, 18 Aug 2024 11:22:59 +0900 Subject: [PATCH] gnu: Add zycore. * gnu/packages/engineering.scm (zycore): New variable. Change-Id: Ia38413f43bc667a9a12916d3f0e786e06f6d358f Signed-off-by: Zheng Junjie --- gnu/packages/engineering.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 7a9c0bc436f739b28e90881aea2ab49844456d9f..e331e93e5a574257a04a14d6d6a626ae0cbad22e 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -40,6 +40,7 @@ ;;; Copyright © 2023 Sharlatan Hellseher ;;; Copyright © 2023 pinoaffe ;;; Copyright © 2024 Juliana Sims +;;; Copyright © 2024 Nguyễn Gia Phong ;;; ;;; This file is part of GNU Guix. ;;; @@ -1927,6 +1928,32 @@ like relocation symbols. It is able to deal with malformed binaries, making it suitable for security research and analysis.") (license license:lgpl3))) +(define-public zycore + (package + (name "zycore") + (version "1.5.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zyantific/zycore-c") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0s962pkqybh1xbs75y4jb4bqc9qnq0sviqd570mirqdhhq87agib")))) + (build-system cmake-build-system) + (native-inputs (list googletest)) + (arguments (list #:configure-flags + #~(list "-DZYCORE_BUILD_SHARED_LIB=ON" + #$(if (%current-target-system) + "-DZYCORE_BUILD_TESTS=OFF" + "-DZYCORE_BUILD_TESTS=ON")))) + (home-page "https://github.com/zyantific/zycore-c") + (synopsis "Internal library for Zydis") + (description + "This package provides platfrom-independent types, macros +and a fallback for environments without libc for Zydis.") + (license license:expat))) + (define-public asco (package (name "asco")