blob: 1e84a05cc85b5d2e716a134ff6988974c1182651 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{ stdenv, fetchgit, cmake, expat, qt5, boost }:
stdenv.mkDerivation rec {
name = "boomerang-${version}";
version = "0.3.99-alpha-2016-11-02";
src = fetchgit {
url = "https://github.com/nemerle/boomerang.git";
rev = "f95d6436845e9036c8cfbd936731449475f79b7a";
sha256 = "1q3q92lfj24ij5sxdbdhcqyan28r6db1w80yrks4csf9zjij1ixh";
};
buildInputs = [ cmake expat qt5.qtbase boost ];
patches = [ ./fix-install.patch ./fix-output.patch ];
postPatch = ''
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/\""
'';
enableParallelBuilding = true;
meta = {
homepage = "http://boomerang.sourceforge.net/";
license = stdenv.lib.licenses.bsd3;
description = "A general, open source, retargetable decompiler";
};
}
|