nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 29 lines 764 B view raw
1{ stdenv, fetchurl, pkgconfig }: 2 3stdenv.mkDerivation rec { 4 pname = "capstone"; 5 version = "4.0.1"; 6 7 src = fetchurl { 8 url = "https://github.com/aquynh/capstone/archive/${version}.tar.gz"; 9 sha256 = "1isxw2qwy1fi3m3w7igsr5klzczxc5cxndz0a78dfss6ps6ymfvr"; 10 }; 11 12 configurePhase = '' patchShebangs make.sh ''; 13 buildPhase = '' ./make.sh ''; 14 installPhase = '' env PREFIX=$out ./make.sh install ''; 15 16 nativeBuildInputs = [ 17 pkgconfig 18 ]; 19 20 enableParallelBuilding = true; 21 22 meta = { 23 description = "Advanced disassembly library"; 24 homepage = "http://www.capstone-engine.org"; 25 license = stdenv.lib.licenses.bsd3; 26 platforms = stdenv.lib.platforms.linux; 27 maintainers = [ stdenv.lib.maintainers.thoughtpolice ]; 28 }; 29}