mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
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 {
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue