forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
66 lines
1.8 KiB
Nix
66 lines
1.8 KiB
Nix
{ autoPatchelfHook, bzip2, cairo, coreutils, fetchurl, gdk-pixbuf, pango, gtk2, kcoreaddons, ki18n, kio, kservice, lib, qt4, qtbase, stdenv, runtimeShell }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bcompare";
|
|
version = "4.3.7.25118";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.scootersoftware.com/${pname}-${version}_amd64.deb";
|
|
sha256 = "165d6d81vy29pr62y4rcvl4abqqhfwdzcsx77p0dqlzgqswj88v8";
|
|
};
|
|
|
|
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
|
|
pango
|
|
cairo
|
|
kio
|
|
kservice
|
|
ki18n
|
|
kcoreaddons
|
|
gdk-pixbuf
|
|
bzip2
|
|
];
|
|
|
|
dontBuild = true;
|
|
dontConfigure = true;
|
|
|
|
meta = with 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" ];
|
|
};
|
|
|
|
}
|