From f7f244f5d91e76054d8c974582f853bc08f9dbe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Wed, 28 May 2025 16:33:47 +0200 Subject: [PATCH] gnu: Add unicorn-2.0. This older version of unicorn is required by python-angr. Without it, python-angr does not pass check [0]. angr upstream is aware of the problem but does not yet support newer versions of unicorn [1]. Other distributions, like Nix, solve this by packaging the older version of unicorn specifically for angr [2], let's do the same! * gnu/packages/emulators.scm (unicorn-2.0): New variable. [0]: https://issues.guix.gnu.org/78132 [1]: https://github.com/angr/angr/issues/4921 [2]: https://github.com/NixOS/nixpkgs/pull/388155 Signed-off-by: Hilton Chain --- gnu/packages/emulators.scm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index 4ec3967e65..6726a08418 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm @@ -3862,6 +3862,18 @@ graphic filters. Some of its features include: emulator framework based on QEMU.") (license license:gpl2+))) +(define-public unicorn-2.0 + (package + (inherit unicorn) + (name "unicorn") + (version "2.0.1.post1") + (source + (origin + (method url-fetch) + (uri (pypi-uri name version)) + (sha256 + (base32 "0mlfs8qfi0clyncfkbxp6in0cpl747510i6bqymwid43xcirbikz")))))) + (define-public ppsspp (package (name "ppsspp")