mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03: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 New Issue
Block a user