Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
747 B · 40 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041{ lib, stdenv, cmake, fetchFromGitHub, fixDarwinDylibNames,}:
stdenv.mkDerivation rec { pname = "capstone"; version = "4.0.2";
src = fetchFromGitHub { owner = "capstone-engine"; repo = "capstone"; rev = version; sha256 = "sha256-XMwQ7UaPC8YYu4yxsE4bbR3leYPfBHu5iixSLz05r3g="; };
nativeBuildInputs = [ cmake ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ fixDarwinDylibNames ];
doCheck = true;
meta = { description = "Advanced disassembly library"; homepage = "http://www.capstone-engine.org"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ thoughtpolice ris ]; mainProgram = "cstool"; platforms = lib.platforms.unix; };}