nixpkgs/pkgs/development/libraries/capstone/default.nix
R. RyanTM 832621c98a capstone: 3.0.5 -> 4.0
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/capstone/versions
2018-12-26 01:21:03 -08:00

30 lines
775 B
Nix

{ stdenv, fetchurl, pkgconfig }:
stdenv.mkDerivation rec {
name = "capstone-${version}";
version = "4.0";
src = fetchurl {
url = "https://github.com/aquynh/capstone/archive/${version}.tar.gz";
sha256 = "0yp6y5m3v674i2pq6s804ikvz43gzgsjwq1maqhmj3b730b4dii6";
};
configurePhase = '' patchShebangs make.sh '';
buildPhase = '' ./make.sh '';
installPhase = '' env PREFIX=$out ./make.sh install '';
nativeBuildInputs = [
pkgconfig
];
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 ];
};
}