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

28 lines
611 B
Nix
Raw Normal View History

{ lib, stdenv
2020-10-29 18:22:04 +00:00
, fetchFromGitHub
, pkg-config
2020-10-29 18:22:04 +00:00
, cmake
}:
stdenv.mkDerivation rec {
pname = "unicorn";
2021-08-08 21:40:05 +00:00
version = "1.0.3";
2020-10-29 18:22:04 +00:00
src = fetchFromGitHub {
owner = "unicorn-engine";
repo = pname;
rev = version;
2021-08-08 21:40:05 +00:00
sha256 = "079azb1df4nwsnsck36b200rnf03aqilw30h3fiaqi1ixash957k";
2020-10-29 18:22:04 +00:00
};
nativeBuildInputs = [ pkg-config cmake ];
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 = "http://www.unicorn-engine.org";
license = licenses.gpl2Only;
platforms = platforms.unix;
maintainers = with maintainers; [ thoughtpolice luc65r ];
};
}