Merge pull request #71833 from dtzWill/update/boomerang-0.5.1
boomerang: 0.4.X -> 0.5.1, various fixes and cleanups
This commit is contained in:
commit
092a835bab
@ -1,41 +1,23 @@
|
|||||||
{ stdenv, fetchFromGitHub, cmake, qtbase }:
|
{ mkDerivation, lib, fetchFromGitHub, cmake, qtbase, capstone, bison, flex }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "boomerang";
|
pname = "boomerang";
|
||||||
version = "0.4.0-alpha-2018-07-03";
|
version = "0.5.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ceeac";
|
owner = "BoomerangDecompiler";
|
||||||
repo = "boomerang";
|
repo = pname;
|
||||||
rev = "377ff2d7db93d892c925e2d3e61aef818371ce7d";
|
rev = "v${version}";
|
||||||
sha256 = "1ljbyj3b8xckr1wihyii3h576zgq0q88vli0ylpr3p4jxy5sm57j";
|
sha256 = "046ba4km8c31kbnllx05nbqhjmk7bpi56d3n8md8bsr98nj21a2j";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake bison flex ];
|
||||||
buildInputs = [ qtbase ];
|
buildInputs = [ qtbase capstone ];
|
||||||
|
|
||||||
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}")/'
|
|
||||||
'';
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
homepage = http://boomerang.sourceforge.net/;
|
homepage = https://github.com/BoomerangDecompiler/boomerang;
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
description = "A general, open source, retargetable decompiler";
|
description = "A general, open source, retargetable decompiler";
|
||||||
maintainers = with maintainers; [ dtzWill ];
|
maintainers = with maintainers; [ dtzWill ];
|
||||||
|
Loading…
Reference in New Issue
Block a user