nixpkgs/pkgs/development/libraries/unicorn/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
696 B
Nix
Raw Normal View History

2022-06-02 19:49:40 +00:00
{ lib
, stdenv
2020-10-29 18:22:04 +00:00
, fetchFromGitHub
, 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
meta = with lib; {
2020-10-29 18:22:04 +00:00
description = "Lightweight multi-platform CPU emulator library";
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 ];
};
}