summary refs log tree commit diff
path: root/pkgs/development/libraries/capstone
diff options
context:
space:
mode:
authorBenno Fünfstück <benno.fuenfstueck@gmail.com>2016-10-03 12:51:16 +0200
committerBenno Fünfstück <benno.fuenfstueck@gmail.com>2016-10-08 18:00:52 +0200
commitde79db8c99bc7aaeda13f8c800d5d8a780774368 (patch)
treea9897ad347137f5553bb3c405b5a011d42095b64 /pkgs/development/libraries/capstone
parentdfb7ea6fd111764405a20fcfd57fc1642817efec (diff)
downloadnixpkgs-de79db8c99bc7aaeda13f8c800d5d8a780774368.tar
nixpkgs-de79db8c99bc7aaeda13f8c800d5d8a780774368.tar.gz
nixpkgs-de79db8c99bc7aaeda13f8c800d5d8a780774368.tar.bz2
nixpkgs-de79db8c99bc7aaeda13f8c800d5d8a780774368.tar.lz
nixpkgs-de79db8c99bc7aaeda13f8c800d5d8a780774368.tar.xz
nixpkgs-de79db8c99bc7aaeda13f8c800d5d8a780774368.tar.zst
nixpkgs-de79db8c99bc7aaeda13f8c800d5d8a780774368.zip
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.
Diffstat (limited to 'pkgs/development/libraries/capstone')
-rw-r--r--pkgs/development/libraries/capstone/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/libraries/capstone/default.nix b/pkgs/development/libraries/capstone/default.nix
index 80f858254ff..97a97523260 100644
--- a/pkgs/development/libraries/capstone/default.nix
+++ b/pkgs/development/libraries/capstone/default.nix
@@ -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 = {