2022-06-02 19:49:40 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-10-29 18:22:04 +00:00
|
|
|
, fetchFromGitHub
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2020-10-29 18:22:04 +00:00
|
|
|
, cmake
|
2021-11-17 06:08:03 +00:00
|
|
|
, IOKit
|
2020-10-29 18:22:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "unicorn";
|
2022-06-02 19:49:40 +00:00
|
|
|
version = "2.0.0-rc7";
|
2020-10-29 18:22:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "unicorn-engine";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-06-02 19:49:40 +00:00
|
|
|
hash = "sha256-qlxtFCJBmouPuUEu8RduZM+rbOr52sGjdb8ZRHWmJ/w=";
|
2020-10-29 18:22:04 +00:00
|
|
|
};
|
|
|
|
|
2022-06-02 19:49:40 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
IOKit
|
|
|
|
];
|
2020-10-29 18:22:04 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-10-29 18:22:04 +00:00
|
|
|
description = "Lightweight multi-platform CPU emulator library";
|
2022-01-03 15:53:12 +00:00
|
|
|
homepage = "https://www.unicorn-engine.org";
|
2020-10-29 18:22:04 +00:00
|
|
|
license = licenses.gpl2Only;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice luc65r ];
|
|
|
|
};
|
|
|
|
}
|