3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/unicorn-emu/default.nix
Kristoffer Søholm 8b633d8b3c unicorn-emulator: 1.0.1 -> 1.0.2-rc4
Also adds tests
2020-07-29 00:32:20 +02:00

35 lines
961 B
Nix

{ stdenv, fetchurl, pkgconfig, python, cmocka, hexdump, writeScriptBin, binutils-unwrapped }:
stdenv.mkDerivation rec {
pname = "unicorn-emulator";
version = "1.0.2-rc4";
src = fetchurl {
url = "https://github.com/unicorn-engine/unicorn/archive/${version}.tar.gz";
sha256 = "05w43jq3r97l3c8ggc745ai8m5l93p1b6q6cfp1zwzz6hl5kifiv";
};
PREFIX = placeholder "out";
MACOS_UNIVERSAL = stdenv.lib.optionalString stdenv.isDarwin "no";
NIX_CFLAGS_COMPILE = "-Wno-error";
doCheck = !stdenv.isDarwin;
checkInputs = [
cmocka
hexdump
python.pkgs.setuptools
];
nativeBuildInputs = [ pkgconfig python ];
enableParallelBuilding = true;
meta = {
description = "Lightweight multi-platform CPU emulator library";
homepage = "http://www.unicorn-engine.org";
license = stdenv.lib.licenses.bsd3;
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
};
}