2020-05-16 22:14:53 +01:00
|
|
|
{ autoPatchelfHook, bzip2, cairo, coreutils, fetchurl, gdk-pixbuf, pango, gtk2, kcoreaddons, ki18n, kio, kservice, lib, qt4, qtbase, stdenv, runtimeShell }:
|
2019-07-30 21:01:59 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bcompare";
|
2020-07-16 17:21:26 +01:00
|
|
|
version = "4.3.5.24893";
|
2019-07-30 21:01:59 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.scootersoftware.com/${pname}-${version}_amd64.deb";
|
2020-07-16 17:21:26 +01:00
|
|
|
sha256 = "1gm8d6hgdg8f3hd83wqac28gkvz5nyn62wj7x44vmr60dh4i2jfn";
|
2019-07-30 21:01:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
ar x $src
|
|
|
|
tar xfz data.tar.gz
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/lib $out/share
|
|
|
|
cp -R usr/share $out/
|
|
|
|
cp -R usr/lib $out/
|
|
|
|
cp -R usr/bin $out/
|
|
|
|
|
|
|
|
# Remove library that refuses to be autoPatchelf'ed
|
|
|
|
rm $out/lib/beyondcompare/ext/bcompare_ext_kde.amd64.so
|
|
|
|
|
|
|
|
substituteInPlace $out/bin/bcompare \
|
|
|
|
--replace "/usr/lib/beyondcompare" "$out/lib/beyondcompare" \
|
|
|
|
--replace "/bin/bash" "${runtimeShell}"
|
|
|
|
|
|
|
|
# Create symlink bzip2 library
|
|
|
|
ln -s ${bzip2.out}/lib/libbz2.so.1 $out/lib/beyondcompare/libbz2.so.1.0
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoPatchelfHook ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
stdenv.cc.cc.lib
|
|
|
|
gtk2
|
2020-05-16 22:14:53 +01:00
|
|
|
pango
|
2019-07-30 21:01:59 +01:00
|
|
|
cairo
|
|
|
|
kio
|
|
|
|
kservice
|
|
|
|
ki18n
|
|
|
|
kcoreaddons
|
|
|
|
gdk-pixbuf
|
|
|
|
bzip2
|
|
|
|
];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GUI application that allows to quickly and easily compare files and folders";
|
|
|
|
longDescription = ''
|
|
|
|
Beyond Compare is focused. Beyond Compare allows you to quickly and easily compare your files and folders.
|
|
|
|
By using simple, powerful commands you can focus on the differences you're interested in and ignore those you're not.
|
|
|
|
You can then merge the changes, synchronize your files, and generate reports for your records.
|
|
|
|
'';
|
|
|
|
homepage = "https://www.scootersoftware.com";
|
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = [ maintainers.ktor ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|