2017-03-30 16:57:59 +01:00
|
|
|
{ stdenv, fetchgit, cmake, expat, qt5, boost }:
|
2012-08-09 17:58:51 +01:00
|
|
|
|
2013-08-26 21:34:25 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "boomerang-${version}";
|
2017-03-30 16:57:59 +01:00
|
|
|
version = "0.3.99-alpha-2016-11-02";
|
2012-08-09 17:58:51 +01:00
|
|
|
|
2013-08-26 21:34:25 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/nemerle/boomerang.git";
|
2017-03-30 16:57:59 +01:00
|
|
|
rev = "f95d6436845e9036c8cfbd936731449475f79b7a";
|
|
|
|
sha256 = "1q3q92lfj24ij5sxdbdhcqyan28r6db1w80yrks4csf9zjij1ixh";
|
2013-08-26 21:34:25 +01:00
|
|
|
};
|
2012-08-09 17:58:51 +01:00
|
|
|
|
2017-03-30 16:57:59 +01:00
|
|
|
buildInputs = [ cmake expat qt5.qtbase boost ];
|
|
|
|
|
|
|
|
patches = [ ./fix-install.patch ./fix-output.patch ];
|
2012-08-09 17:58:51 +01:00
|
|
|
|
2013-08-26 21:34:25 +01:00
|
|
|
postPatch = ''
|
2017-03-30 16:57:59 +01:00
|
|
|
substituteInPlace loader/BinaryFileFactory.cpp \
|
|
|
|
--replace '"lib"' '"../lib"'
|
|
|
|
|
|
|
|
substituteInPlace ui/DecompilerThread.cpp \
|
|
|
|
--replace '"output"' '"./output"'
|
|
|
|
|
|
|
|
substituteInPlace boomerang.cpp \
|
|
|
|
--replace 'progPath("./")' "progPath(\"$out/share/boomerang/\")"
|
|
|
|
|
|
|
|
substituteInPlace ui/commandlinedriver.cpp \
|
|
|
|
--replace "QFileInfo(args[0]).absolutePath()" "\"$out/share/boomerang/\""
|
2013-08-26 21:34:25 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2012-08-09 17:58:51 +01:00
|
|
|
|
|
|
|
meta = {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://boomerang.sourceforge.net/;
|
2012-08-09 17:58:51 +01:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
description = "A general, open source, retargetable decompiler";
|
|
|
|
};
|
|
|
|
}
|