Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 631 B view raw
1{ stdenv, buildPackages, buildPythonPackage, fetchPypi, isPy3k }: 2 3buildPythonPackage rec { 4 name = "${pname}-${version}"; 5 pname = "unicorn"; 6 version = "1.0.1"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "0a5b4vh734b3wfkgapzzf8x18rimpmzvwwkly56da84n27wfw9bg"; 11 }; 12 13 # needs python2 at build time 14 PYTHON="${buildPackages.python2.interpreter}"; 15 16 setupPyBuildFlags = [ "--plat-name" "linux" ]; 17 18 meta = with stdenv.lib; { 19 description = "Unicorn CPU emulator engine"; 20 homepage = "http://www.unicorn-engine.org/"; 21 license = [ licenses.gpl2 ]; 22 maintainers = [ maintainers.bennofs ]; 23 }; 24}