Skip to content

Commit ac8bd5a

Browse files
committed
refactor: move lief definitions to expected location
Should help upcoming commits render their diffs correctly
1 parent eb0ae08 commit ac8bd5a

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

contrib/guix/manifest.scm

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,40 @@ chain for " target " development."))
203203
(search-our-patches "nsis-gcc-10-memmove.patch"
204204
"nsis-disable-installer-reloc.patch")))
205205

206+
(define (fix-ppc64-nx-default lief)
207+
(package-with-extra-patches lief
208+
(search-our-patches "lief-fix-ppc64-nx-default.patch")))
209+
210+
(define-public lief
211+
(package
212+
(name "python-lief")
213+
(version "0.12.1")
214+
(source
215+
(origin
216+
(method git-fetch)
217+
(uri (git-reference
218+
(url "https://github.com/lief-project/LIEF.git")
219+
(commit version)))
220+
(file-name (git-file-name name version))
221+
(sha256
222+
(base32
223+
"1xzbh3bxy4rw1yamnx68da1v5s56ay4g081cyamv67256g0qy2i1"))))
224+
(build-system python-build-system)
225+
(arguments
226+
`(#:phases
227+
(modify-phases %standard-phases
228+
(add-after 'unpack 'parallel-jobs
229+
;; build with multiple cores
230+
(lambda _
231+
(substitute* "setup.py" (("self.parallel if self.parallel else 1") (number->string (parallel-job-count)))))))))
232+
(native-inputs
233+
`(("cmake" ,cmake)))
234+
(home-page "https://github.com/lief-project/LIEF")
235+
(synopsis "Library to Instrument Executable Formats")
236+
(description "Python library to to provide a cross platform library which can
237+
parse, modify and abstract ELF, PE and MachO formats.")
238+
(license license:asl2.0)))
239+
206240
(define osslsigncode
207241
(package
208242
(name "osslsigncode")
@@ -529,40 +563,6 @@ inspecting signatures in Mach-O binaries.")
529563
(patches (search-our-patches "glibc-2.27-fcommon.patch"
530564
"glibc-2.27-guix-prefix.patch"))))))
531565

532-
(define (fix-ppc64-nx-default lief)
533-
(package-with-extra-patches lief
534-
(search-our-patches "lief-fix-ppc64-nx-default.patch")))
535-
536-
(define-public lief
537-
(package
538-
(name "python-lief")
539-
(version "0.12.1")
540-
(source
541-
(origin
542-
(method git-fetch)
543-
(uri (git-reference
544-
(url "https://github.com/lief-project/LIEF.git")
545-
(commit version)))
546-
(file-name (git-file-name name version))
547-
(sha256
548-
(base32
549-
"1xzbh3bxy4rw1yamnx68da1v5s56ay4g081cyamv67256g0qy2i1"))))
550-
(build-system python-build-system)
551-
(arguments
552-
`(#:phases
553-
(modify-phases %standard-phases
554-
(add-after 'unpack 'parallel-jobs
555-
;; build with multiple cores
556-
(lambda _
557-
(substitute* "setup.py" (("self.parallel if self.parallel else 1") (number->string (parallel-job-count)))))))))
558-
(native-inputs
559-
`(("cmake" ,cmake)))
560-
(home-page "https://github.com/lief-project/LIEF")
561-
(synopsis "Library to Instrument Executable Formats")
562-
(description "Python library to to provide a cross platform library which can
563-
parse, modify and abstract ELF, PE and MachO formats.")
564-
(license license:asl2.0)))
565-
566566
(packages->manifest
567567
(append
568568
(list ;; The Basics

0 commit comments

Comments
 (0)