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.
This commit is contained in:
Benno Fünfstück 2016-10-03 12:51:16 +02:00
parent dfb7ea6fd1
commit de79db8c99

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, bash, cmake }:
{ stdenv, fetchurl, bash }:
stdenv.mkDerivation rec {
name = "capstone-${version}";
@ -9,7 +9,10 @@ stdenv.mkDerivation rec {
sha256 = "1whl5c8j6vqvz2j6ay2pyszx0jg8d3x8hq66cvgghmjchvsssvax";
};
buildInputs = [ cmake ];
configurePhase = '' patchShebangs make.sh '';
buildPhase = '' ./make.sh '';
installPhase = '' env PREFIX=$out ./make.sh install '';
enableParallelBuilding = true;
meta = {