summary refs log tree commit diff
diff options
context:
space:
mode:
authorpolygon <polygon@wh2.tu-dresden.de>2021-05-14 00:18:29 +0200
committerpolygon <polygon@wh2.tu-dresden.de>2021-05-14 00:26:38 +0200
commit060fb3b67260f0c87a7f8a64872cdb7e4250fc04 (patch)
tree418bacd36491b8c3a6fcdf998955f80ca6823e3d
parent460d4a40a0765b888a6d61597ffd114f4150197e (diff)
downloadnixpkgs-060fb3b67260f0c87a7f8a64872cdb7e4250fc04.tar
nixpkgs-060fb3b67260f0c87a7f8a64872cdb7e4250fc04.tar.gz
nixpkgs-060fb3b67260f0c87a7f8a64872cdb7e4250fc04.tar.bz2
nixpkgs-060fb3b67260f0c87a7f8a64872cdb7e4250fc04.tar.lz
nixpkgs-060fb3b67260f0c87a7f8a64872cdb7e4250fc04.tar.xz
nixpkgs-060fb3b67260f0c87a7f8a64872cdb7e4250fc04.tar.zst
nixpkgs-060fb3b67260f0c87a7f8a64872cdb7e4250fc04.zip
boomerang: Add cstdint include needed with GCC10
Include cstdint as needed with GCC10. This follows an upstream patch
for the same issue that is not yet part of a release.

https://github.com/BoomerangDecompiler/boomerang/commit/3342b0eac6b7617d9913226c06c1470820593e74
-rw-r--r--pkgs/development/tools/boomerang/cstdint.patch12
-rw-r--r--pkgs/development/tools/boomerang/default.nix4
2 files changed, 16 insertions, 0 deletions
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 <cstdint>
+ #include <unordered_map>
+ #include <vector>
+ 
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";