about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/unicorn
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/unicorn')
-rw-r--r--nixpkgs/pkgs/development/libraries/unicorn/default.nix14
1 files changed, 12 insertions, 2 deletions
diff --git a/nixpkgs/pkgs/development/libraries/unicorn/default.nix b/nixpkgs/pkgs/development/libraries/unicorn/default.nix
index e558bbbbb542..89adbc102578 100644
--- a/nixpkgs/pkgs/development/libraries/unicorn/default.nix
+++ b/nixpkgs/pkgs/development/libraries/unicorn/default.nix
@@ -4,28 +4,38 @@
 , pkg-config
 , cmake
 , IOKit
+, cctools
 }:
 
 stdenv.mkDerivation rec {
   pname = "unicorn";
-  version = "2.0.0-rc7";
+  version = "2.0.1.post1";
 
   src = fetchFromGitHub {
     owner = "unicorn-engine";
     repo = pname;
     rev = version;
-    hash = "sha256-qlxtFCJBmouPuUEu8RduZM+rbOr52sGjdb8ZRHWmJ/w=";
+    hash = "sha256-Jz5C35rwnDz0CXcfcvWjkwScGNQO1uijF7JrtZhM7mI=";
   };
 
   nativeBuildInputs = [
     cmake
     pkg-config
+  ] ++ lib.optionals stdenv.isDarwin [
+    cctools
   ];
 
   buildInputs = lib.optionals stdenv.isDarwin [
     IOKit
   ];
 
+  cmakeFlags = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
+    # Some x86 tests are interrupted by signal 10
+    "-DCMAKE_CTEST_ARGUMENTS=--exclude-regex;test_x86"
+  ];
+
+  doCheck = true;
+
   meta = with lib; {
     description = "Lightweight multi-platform CPU emulator library";
     homepage = "https://www.unicorn-engine.org";