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