mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
24 lines
667 B
Nix
24 lines
667 B
Nix
{ lib, stdenv, buildPythonPackage, setuptools, unicorn-emu }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "unicorn";
|
|
version = 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 lib; {
|
|
description = "Python bindings for Unicorn CPU emulator engine";
|
|
homepage = "https://www.unicorn-engine.org/";
|
|
license = [ licenses.gpl2 ];
|
|
maintainers = with maintainers; [ bennofs ris ];
|
|
};
|
|
}
|