capstone: use Makefile build (for pkg-config files)

The cmake based build system did not install the pkg-config files for
capstone, which made builds depending on capstone harder to write as
they cannot automatically find the location of the capstone library.

+5 -2
+5 -2
pkgs/development/libraries/capstone/default.nix
··· 1 - { stdenv, fetchurl, bash, cmake }: 1 + { stdenv, fetchurl, bash }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "capstone-${version}"; ··· 9 9 sha256 = "1whl5c8j6vqvz2j6ay2pyszx0jg8d3x8hq66cvgghmjchvsssvax"; 10 10 }; 11 11 12 - buildInputs = [ cmake ]; 12 + configurePhase = '' patchShebangs make.sh ''; 13 + buildPhase = '' ./make.sh ''; 14 + installPhase = '' env PREFIX=$out ./make.sh install ''; 15 + 13 16 enableParallelBuilding = true; 14 17 15 18 meta = {