@@ -1,8 +1,11 @@
1−{ mkDerivation, lib, fetchFromGitHub, cmake, qtbase, capstone, bison, flex }:
1+{ mkDerivation, lib, fetchFromGitHub, fetchpatch, cmake, qtbase, capstone, bison, flex }:
22
33mkDerivation rec {
44 pname = "boomerang";
55 version = "0.5.2";
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
69
710 src = fetchFromGitHub {
811 owner = "BoomerangDecompiler";
@@ -13,6 +16,13 @@ mkDerivation rec {
1316
1417 nativeBuildInputs = [ cmake bison flex ];
1518 buildInputs = [ qtbase capstone ];
19+ patches = [
20+ (fetchpatch {
21+ name = "include-missing-cstdint.patch";
22+ url = "https://github.com/BoomerangDecompiler/boomerang/commit/3342b0eac6b7617d9913226c06c1470820593e74.patch";
23+ sha256 = "sha256-941IydcV3mqj7AWvXTM6GePW5VgawEcL0wrBCXqeWvc=";
24+ })
25+ ];
1626
1727 meta = with lib; {
1828 homepage = "https://github.com/BoomerangDecompiler/boomerang";