capstone: attempt to fix Linux build, remove Darwin build

The Darwin build seems fixable but I can't test right now.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp 2014-04-11 21:40:31 -05:00
parent 036a7708a2
commit cf24cf1184

@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, bash }:
stdenv.mkDerivation rec {
name = "capstone-${version}";
@ -10,13 +10,18 @@ stdenv.mkDerivation rec {
};
buildPhase = false;
patchPhase = ''
substituteInPlace make.sh --replace "/usr/bin/env bash" "${bash}/bin/bash"
'';
installPhase = "PREFIX=$out ./make.sh install";
meta = {
description = "advanced disassembly library";
homepage = "http://www.capstone-engine.org";
license = stdenv.lib.licenses.bsd3;
platforms = stdenv.lib.platforms.unix;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
};
}