boomerang: Replace inline patch with fetchpatch

This commit is contained in:
polygon 2021-05-14 15:04:44 +02:00
parent 060fb3b672
commit 92ac079673
2 changed files with 8 additions and 14 deletions

View File

@ -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>

View File

@ -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";