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:
parent
036a7708a2
commit
cf24cf1184
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl, bash }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "capstone-${version}";
|
name = "capstone-${version}";
|
||||||
@ -10,13 +10,18 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildPhase = false;
|
buildPhase = false;
|
||||||
|
|
||||||
|
patchPhase = ''
|
||||||
|
substituteInPlace make.sh --replace "/usr/bin/env bash" "${bash}/bin/bash"
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase = "PREFIX=$out ./make.sh install";
|
installPhase = "PREFIX=$out ./make.sh install";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "advanced disassembly library";
|
description = "advanced disassembly library";
|
||||||
homepage = "http://www.capstone-engine.org";
|
homepage = "http://www.capstone-engine.org";
|
||||||
license = stdenv.lib.licenses.bsd3;
|
license = stdenv.lib.licenses.bsd3;
|
||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = stdenv.lib.platforms.linux;
|
||||||
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user