Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 23 lines 687 B view raw
1{ stdenv, buildPythonPackage, setuptools, unicorn-emu }: 2 3buildPythonPackage rec { 4 pname = "unicorn"; 5 version = stdenv.lib.getVersion unicorn-emu; 6 7 src = unicorn-emu.src; 8 sourceRoot = "unicorn-${version}/bindings/python"; 9 10 prePatch = '' 11 ln -s ${unicorn-emu}/lib/libunicorn${stdenv.targetPlatform.extensions.sharedLibrary} prebuilt/ 12 ln -s ${unicorn-emu}/lib/libunicorn.a prebuilt/ 13 ''; 14 15 propagatedBuildInputs = [ setuptools ]; 16 17 meta = with stdenv.lib; { 18 description = "Python bindings for Unicorn CPU emulator engine"; 19 homepage = "http://www.unicorn-engine.org/"; 20 license = [ licenses.gpl2 ]; 21 maintainers = with maintainers; [ bennofs ris ]; 22 }; 23}