2021-05-14 13:04:44 +00:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, fetchpatch, cmake, qtbase, capstone, bison, flex }:
|
2012-08-09 16:58:51 +00:00
|
|
|
|
2019-10-11 12:29:54 +00:00
|
|
|
mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "boomerang";
|
2020-01-13 01:22:58 +00:00
|
|
|
version = "0.5.2";
|
2021-05-13 22:18:29 +00:00
|
|
|
# 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
|
2012-08-09 16:58:51 +00:00
|
|
|
|
2018-01-18 17:49:29 +00:00
|
|
|
src = fetchFromGitHub {
|
2019-07-15 17:00:17 +00:00
|
|
|
owner = "BoomerangDecompiler";
|
|
|
|
repo = pname;
|
2019-10-24 06:03:20 +00:00
|
|
|
rev = "v${version}";
|
2020-01-13 01:22:58 +00:00
|
|
|
sha256 = "0xncdp0z8ry4lkzmvbj5d7hlzikivghpwicgywlv47spgh8ny0ix";
|
2013-08-26 20:34:25 +00:00
|
|
|
};
|
2012-08-09 16:58:51 +00:00
|
|
|
|
2023-05-14 00:22:15 +00:00
|
|
|
# Boomerang usually compiles with -Werror but has not been updated for newer
|
|
|
|
# compilers. Disable -Werror for now. Consider trying to remove this when
|
|
|
|
# updating this derivation.
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
|
|
|
|
2019-07-15 17:00:17 +00:00
|
|
|
nativeBuildInputs = [ cmake bison flex ];
|
|
|
|
buildInputs = [ qtbase capstone ];
|
2021-05-14 13:04:44 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "include-missing-cstdint.patch";
|
|
|
|
url = "https://github.com/BoomerangDecompiler/boomerang/commit/3342b0eac6b7617d9913226c06c1470820593e74.patch";
|
|
|
|
sha256 = "sha256-941IydcV3mqj7AWvXTM6GePW5VgawEcL0wrBCXqeWvc=";
|
|
|
|
})
|
|
|
|
];
|
2018-01-18 17:49:29 +00:00
|
|
|
|
2019-10-11 12:29:54 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/BoomerangDecompiler/boomerang";
|
2018-01-18 17:49:29 +00:00
|
|
|
license = licenses.bsd3;
|
2012-08-09 16:58:51 +00:00
|
|
|
description = "A general, open source, retargetable decompiler";
|
2018-01-18 17:49:29 +00:00
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
2012-08-09 16:58:51 +00:00
|
|
|
};
|
|
|
|
}
|