1 { mkDerivation, lib, fetchFromGitHub, fetchpatch, cmake, qtbase, capstone, bison, flex }:
6 # NOTE: When bumping version beyond 0.5.2, you likely need to remove
7 # the cstdint.patch below. The patch does a fix that has already
8 # been done upstream but is not yet part of a release
10 src = fetchFromGitHub {
11 owner = "BoomerangDecompiler";
14 sha256 = "0xncdp0z8ry4lkzmvbj5d7hlzikivghpwicgywlv47spgh8ny0ix";
17 # Boomerang usually compiles with -Werror but has not been updated for newer
18 # compilers. Disable -Werror for now. Consider trying to remove this when
19 # updating this derivation.
20 NIX_CFLAGS_COMPILE = "-Wno-error";
22 nativeBuildInputs = [ cmake bison flex ];
23 buildInputs = [ qtbase capstone ];
26 name = "include-missing-cstdint.patch";
27 url = "https://github.com/BoomerangDecompiler/boomerang/commit/3342b0eac6b7617d9913226c06c1470820593e74.patch";
28 sha256 = "sha256-941IydcV3mqj7AWvXTM6GePW5VgawEcL0wrBCXqeWvc=";
33 homepage = "https://github.com/BoomerangDecompiler/boomerang";
34 license = licenses.bsd3;
35 description = "General, open source, retargetable decompiler";