git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commitde79db8c99bc7aaeda13f8c800d5d8a780774368 authorBenno Fünfstück <benno.fuenfstueck@gmail.com> dateMon 3 Oct 2016, 12:51 (10 years ago) parentdfb7ea6
1 file changed+5−2
pkgs/development/libraries/capstone/default.nix+5−2
pkgs/development/libraries/capstone/default.nix+5−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, bash, cmake }:
1+{ stdenv, fetchurl, bash }:
22
33stdenv.mkDerivation rec {
44 name = "capstone-${version}";
@@ -9,7 +9,10 @@ stdenv.mkDerivation rec {
99 sha256 = "1whl5c8j6vqvz2j6ay2pyszx0jg8d3x8hq66cvgghmjchvsssvax";
1010 };
1111
12− buildInputs = [ cmake ];
12+ configurePhase = '' patchShebangs make.sh '';
13+ buildPhase = '' ./make.sh '';
14+ installPhase = '' env PREFIX=$out ./make.sh install '';
15+
1316 enableParallelBuilding = true;
1417
1518 meta = {