summary refs log tree commit diff
path: root/pkgs/development/libraries/capstone/default.nix
blob: a72532ee35bce2d120a07fe387e867485272ab17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv, fetchurl, bash, cmake }:

stdenv.mkDerivation rec {
  name    = "capstone-${version}";
  version = "3.0.4";

  src = fetchurl {
    url    = "https://github.com/aquynh/capstone/archive/${version}.tar.gz";
    sha256 = "1whl5c8j6vqvz2j6ay2pyszx0jg8d3x8hq66cvgghmjchvsssvax";
  };

  buildInputs = [ cmake ];
  enableParallelBuild = 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 ];
  };
}