diff options
author | polygon <polygon@wh2.tu-dresden.de> | 2021-05-14 15:04:44 +0200 |
---|---|---|
committer | polygon <polygon@wh2.tu-dresden.de> | 2021-05-14 15:04:44 +0200 |
commit | 92ac079673e7ec0749062b4c93c64b56d64828ea (patch) | |
tree | 14f87efd7dff9ed498a6e3489cff7b3d76f4dd8a /pkgs/development/tools/boomerang | |
parent | 060fb3b67260f0c87a7f8a64872cdb7e4250fc04 (diff) |
boomerang: Replace inline patch with fetchpatch
Diffstat (limited to 'pkgs/development/tools/boomerang')
-rw-r--r-- | pkgs/development/tools/boomerang/cstdint.patch | 12 | ||||
-rw-r--r-- | pkgs/development/tools/boomerang/default.nix | 10 |
2 files changed, 8 insertions, 14 deletions
diff --git a/pkgs/development/tools/boomerang/cstdint.patch b/pkgs/development/tools/boomerang/cstdint.patch deleted file mode 100644 index 69e35261b4c8d..0000000000000 --- a/pkgs/development/tools/boomerang/cstdint.patch +++ /dev/null @@ -1,12 +0,0 @@ -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 eb5ae33f91978..b37ab9a2d3f9d 100644 --- a/pkgs/development/tools/boomerang/default.nix +++ b/pkgs/development/tools/boomerang/default.nix @@ -1,4 +1,4 @@ -{ mkDerivation, lib, fetchFromGitHub, cmake, qtbase, capstone, bison, flex }: +{ mkDerivation, lib, fetchFromGitHub, fetchpatch, cmake, qtbase, capstone, bison, flex }: mkDerivation rec { pname = "boomerang"; @@ -16,7 +16,13 @@ mkDerivation rec { nativeBuildInputs = [ cmake bison flex ]; buildInputs = [ qtbase capstone ]; - patches = [ ./cstdint.patch ]; + patches = [ + (fetchpatch { + name = "include-missing-cstdint.patch"; + url = "https://github.com/BoomerangDecompiler/boomerang/commit/3342b0eac6b7617d9913226c06c1470820593e74.patch"; + sha256 = "sha256-941IydcV3mqj7AWvXTM6GePW5VgawEcL0wrBCXqeWvc="; + }) + ]; meta = with lib; { homepage = "https://github.com/BoomerangDecompiler/boomerang"; |