1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/capstone/default.nix
Benno Fünfstück de79db8c99 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.
2016-10-08 18:00:52 +02:00

26 lines
726 B
Nix

{ stdenv, fetchurl, bash }:
stdenv.mkDerivation rec {
name = "capstone-${version}";
version = "3.0.4";
src = fetchurl {
url = "https://github.com/aquynh/capstone/archive/${version}.tar.gz";
sha256 = "1whl5c8j6vqvz2j6ay2pyszx0jg8d3x8hq66cvgghmjchvsssvax";
};
configurePhase = '' patchShebangs make.sh '';
buildPhase = '' ./make.sh '';
installPhase = '' env PREFIX=$out ./make.sh install '';
enableParallelBuilding = true;
meta = {
description = "Advanced disassembly library";
homepage = "http://www.capstone-engine.org";
license = stdenv.lib.licenses.bsd3;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
};
}