boomerang: remove deprecated fixups/workarounds

If they're still needed they should be reworked so they apply :)
This commit is contained in:
Will Dietz 2019-07-15 12:13:34 -05:00
parent 4fca420a18
commit 32d132a8ee
No known key found for this signature in database
GPG Key ID: EBB0EA4124809D02

View File

@ -14,24 +14,6 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake bison flex ];
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;
meta = with stdenv.lib; {