mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
boomerang: remove deprecated fixups/workarounds
If they're still needed they should be reworked so they apply :)
This commit is contained in:
parent
4fca420a18
commit
32d132a8ee
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user