diff --git a/pkgs/development/tools/boomerang/cstdint.patch b/pkgs/development/tools/boomerang/cstdint.patch new file mode 100644 index 00000000000..69e35261b4c --- /dev/null +++ b/pkgs/development/tools/boomerang/cstdint.patch @@ -0,0 +1,12 @@ +diff --git a/src/boomerang-plugins/codegen/c/ControlFlowAnalyzer.h b/src/boomerang-plugins/codegen/c/ControlFlowAnalyzer.h +index 011b9c9..40c343a 100644 +--- a/src/boomerang-plugins/codegen/c/ControlFlowAnalyzer.h ++++ b/src/boomerang-plugins/codegen/c/ControlFlowAnalyzer.h +@@ -10,6 +10,7 @@ + #pragma once + + ++#include + #include + #include + diff --git a/pkgs/development/tools/boomerang/default.nix b/pkgs/development/tools/boomerang/default.nix index 4ac9159520f..eb5ae33f919 100644 --- a/pkgs/development/tools/boomerang/default.nix +++ b/pkgs/development/tools/boomerang/default.nix @@ -3,6 +3,9 @@ mkDerivation rec { pname = "boomerang"; version = "0.5.2"; + # NOTE: When bumping version beyond 0.5.2, you likely need to remove + # the cstdint.patch below. The patch does a fix that has already + # been done upstream but is not yet part of a release src = fetchFromGitHub { owner = "BoomerangDecompiler"; @@ -13,6 +16,7 @@ mkDerivation rec { nativeBuildInputs = [ cmake bison flex ]; buildInputs = [ qtbase capstone ]; + patches = [ ./cstdint.patch ]; meta = with lib; { homepage = "https://github.com/BoomerangDecompiler/boomerang";