nixpkgs/pkgs/development/python-modules/unicorn/default.nix

24 lines
676 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, setuptools, unicorn-emu }:
buildPythonPackage rec {
pname = "unicorn";
version = stdenv.lib.getVersion unicorn-emu;
src = unicorn-emu.src;
2020-10-29 18:22:04 +00:00
sourceRoot = "source/bindings/python";
prePatch = ''
ln -s ${unicorn-emu}/lib/libunicorn${stdenv.targetPlatform.extensions.sharedLibrary} prebuilt/
ln -s ${unicorn-emu}/lib/libunicorn.a prebuilt/
'';
propagatedBuildInputs = [ setuptools ];
meta = with stdenv.lib; {
description = "Python bindings for Unicorn CPU emulator engine";
homepage = "https://www.unicorn-engine.org/";
license = [ licenses.gpl2 ];
maintainers = with maintainers; [ bennofs ris ];
};
}