about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/unicorn/default.nix
blob: dcb8eca187e8287627826400e51c90d12a55fb58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, buildPackages, buildPythonPackage, fetchPypi }:

buildPythonPackage rec {
  pname = "unicorn";
  version = "1.0.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0a5b4vh734b3wfkgapzzf8x18rimpmzvwwkly56da84n27wfw9bg";
  };

  # needs python2 at build time
  PYTHON="${buildPackages.python2.interpreter}";

  setupPyBuildFlags = [ "--plat-name" "linux" ];

  meta = with stdenv.lib; {
    description = "Unicorn CPU emulator engine";
    homepage = "http://www.unicorn-engine.org/";
    license = [ licenses.gpl2 ];
    maintainers = [ maintainers.bennofs ];
  };
}