diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/unicorn')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/development/python-modules/unicorn/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/unicorn/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/unicorn/default.nix new file mode 100644 index 000000000000..8bd6507bb5ba --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/unicorn/default.nix @@ -0,0 +1,23 @@ +{ stdenv, buildPythonPackage, setuptools, unicorn-emu }: + +buildPythonPackage rec { + pname = "unicorn"; + version = stdenv.lib.getVersion unicorn-emu; + + src = unicorn-emu.src; + 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 ]; + }; +} |