2018-01-18 17:49:29 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, qtbase }:
|
2012-08-09 17:58:51 +01:00
|
|
|
|
2013-08-26 21:34:25 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "boomerang";
|
2018-07-04 02:34:02 +01:00
|
|
|
version = "0.4.0-alpha-2018-07-03";
|
2012-08-09 17:58:51 +01:00
|
|
|
|
2018-01-18 17:49:29 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ceeac";
|
|
|
|
repo = "boomerang";
|
2018-07-04 02:34:02 +01:00
|
|
|
rev = "377ff2d7db93d892c925e2d3e61aef818371ce7d";
|
|
|
|
sha256 = "1ljbyj3b8xckr1wihyii3h576zgq0q88vli0ylpr3p4jxy5sm57j";
|
2013-08-26 21:34:25 +01:00
|
|
|
};
|
2012-08-09 17:58:51 +01:00
|
|
|
|
2018-01-18 17:49:29 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ qtbase ];
|
|
|
|
|
|
|
|
postPatch =
|
|
|
|
# Look in installation directory for required files, not relative to working directory
|
|
|
|
''
|
|
|
|
substituteInPlace src/boomerang/core/Settings.cpp \
|
|
|
|
--replace "setDataDirectory(\"../share/boomerang\");" \
|
|
|
|
"setDataDirectory(\"$out/share/boomerang\");" \
|
|
|
|
--replace "setPluginDirectory(\"../lib/boomerang/plugins\");" \
|
|
|
|
"setPluginDirectory(\"$out/lib/boomerang/plugins\");"
|
|
|
|
''
|
|
|
|
# Fixup version:
|
|
|
|
# * don't try to inspect with git
|
|
|
|
# (even if we kept .git and such it would be "dirty" because of patching)
|
|
|
|
# * use date so version is monotonically increasing moving forward
|
|
|
|
+ ''
|
|
|
|
sed -i cmake-scripts/boomerang-version.cmake \
|
|
|
|
-e 's/set(\(PROJECT\|BOOMERANG\)_VERSION ".*")/set(\1_VERSION "${version}")/'
|
2013-08-26 21:34:25 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2012-08-09 17:58:51 +01:00
|
|
|
|
2018-01-18 17:49:29 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://boomerang.sourceforge.net/;
|
2018-01-18 17:49:29 +00:00
|
|
|
license = licenses.bsd3;
|
2012-08-09 17:58:51 +01:00
|
|
|
description = "A general, open source, retargetable decompiler";
|
2018-01-18 17:49:29 +00:00
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
2012-08-09 17:58:51 +01:00
|
|
|
};
|
|
|
|
}
|