2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, python }:
|
2017-11-30 06:11:45 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "unicorn-emulator";
|
2017-11-30 06:11:45 +00:00
|
|
|
version = "1.0.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/unicorn-engine/unicorn/archive/${version}.tar.gz";
|
|
|
|
sha256 = "0z01apwmvhvdldm372ww9pjfn45awkw3m90c0h4v0nj0ihmlysis";
|
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = '' patchShebangs make.sh '';
|
2019-12-31 21:22:44 +00:00
|
|
|
buildPhase = '' ./make.sh '' + stdenv.lib.optionalString stdenv.isDarwin "macos-universal-no";
|
2017-11-30 06:11:45 +00:00
|
|
|
installPhase = '' env PREFIX=$out ./make.sh install '';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig python ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Lightweight multi-platform CPU emulator library";
|
|
|
|
homepage = "http://www.unicorn-engine.org";
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2019-12-31 21:22:44 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2017-11-30 06:11:45 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|