nixpkgs/pkgs/development/tools/boomerang/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

38 lines
1.1 KiB
Nix

{ 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";
};
}