1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/unicorn/default.nix
Robert Scott 8b3e1e72a7 pythonPackages.unicorn: redesign to become a wrapper package around unicorn-emu
this allows us to easily keep the two in sync and gives a more flexible
result, also add self as co-maintainer.
2020-01-04 15:08:56 -06:00

24 lines
687 B
Nix

{ stdenv, buildPythonPackage, setuptools, unicorn-emu }:
buildPythonPackage rec {
pname = "unicorn";
version = stdenv.lib.getVersion unicorn-emu;
src = unicorn-emu.src;
sourceRoot = "unicorn-${version}/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 = "http://www.unicorn-engine.org/";
license = [ licenses.gpl2 ];
maintainers = with maintainers; [ bennofs ris ];
};
}