Skip to content

Commit 2e7a9f7

Browse files
fanquakedongcarl
andcommitted
guix: install LIEF in Guix container
Co-authored-by: Carl Dong <[email protected]>
1 parent 465967b commit 2e7a9f7

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

contrib/guix/manifest.scm

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@
2727
(gnu packages version-control)
2828
(guix build-system font)
2929
(guix build-system gnu)
30+
(guix build-system python)
3031
(guix build-system trivial)
3132
(guix download)
3233
(guix gexp)
34+
(guix git-download)
3335
((guix licenses) #:prefix license:)
3436
(guix packages)
3537
(guix profiles)
@@ -192,6 +194,29 @@ chain for " target " development."))
192194
"Thatcher Ulrich's first outline font design. He started with the goal of producing a neutral, readable sans-serif text font. There are lots of \"expressive\" fonts out there, but he wanted to start with something very plain and clean, something he might want to actually use. ")
193195
(license license:public-domain)))
194196

197+
(define-public lief
198+
(package
199+
(name "python-lief")
200+
(version "0.11.4")
201+
(source
202+
(origin
203+
(method git-fetch)
204+
(uri (git-reference
205+
(url "https://github.com/lief-project/LIEF.git")
206+
(commit version)))
207+
(file-name (git-file-name name version))
208+
(sha256
209+
(base32
210+
"0h4kcwr9z478almjqhmils8imfpflzk0r7d05g4xbkdyknn162qf"))))
211+
(build-system python-build-system)
212+
(native-inputs
213+
`(("cmake" ,cmake)))
214+
(home-page "https://github.com/lief-project/LIEF")
215+
(synopsis "Library to Instrument Executable Formats")
216+
(description "Python library to to provide a cross platform library which can
217+
parse, modify and abstract ELF, PE and MachO formats.")
218+
(license license:asl2.0)))
219+
195220
(packages->manifest
196221
(append
197222
(list ;; The Basics
@@ -227,6 +252,8 @@ chain for " target " development."))
227252
python-3
228253
;; Git
229254
git
255+
;; Tests
256+
lief
230257
;; Native gcc 7 toolchain
231258
gcc-toolchain-7
232259
(list gcc-toolchain-7 "static"))

0 commit comments

Comments
 (0)