Merge pull request #61623 from dtzWill/update/kdiff3-1.8
kdiff3: 1.7.x -> 1.8.1
This commit is contained in:
commit
8932e2c30a
@ -1,35 +1,18 @@
|
|||||||
{
|
{
|
||||||
mkDerivation, lib, fetchgit, fetchpatch,
|
mkDerivation, lib, fetchurl,
|
||||||
extra-cmake-modules, kdoctools, wrapGAppsHook,
|
extra-cmake-modules, kdoctools, wrapGAppsHook,
|
||||||
kcrash, kconfig, kinit, kparts
|
kcrash, kconfig, kinit, kparts
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
name = "kdiff3-${version}";
|
pname = "kdiff3";
|
||||||
version = "1.7.0-2017-02-19";
|
version = "1.8.1";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchurl {
|
||||||
# gitlab is outdated
|
url = "https://download.kde.org/stable/${pname}/${pname}-${version}.tar.xz";
|
||||||
url = https://anongit.kde.org/scratch/thomasfischer/kdiff3.git;
|
sha256 = "0vj3rw5w0kry2c1y8gv6hniam417w7k3ydb1dkf5xwr4iprw0xvq";
|
||||||
sha256 = "0znlk9m844a6qsskbd898w4yk48dkg5bkqlkd5abvyrk1jipzyy8";
|
|
||||||
rev = "0d2ac328164e3cbe2db35875d3df3a86187ae84f";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
setSourceRoot = ''sourceRoot="$(echo */kdiff3/)"'';
|
|
||||||
|
|
||||||
patches = [
|
|
||||||
(fetchpatch {
|
|
||||||
name = "git-mergetool.diff"; # see https://gitlab.com/tfischer/kdiff3/merge_requests/2
|
|
||||||
url = "https://gitlab.com/vcunat/kdiff3/commit/6106126216.patch";
|
|
||||||
sha256 = "16xqc24y8bg8gzkdbwapiwi68rzqnkpz4hgn586mi01ngig2fd7y";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
patchFlags = "-p 2";
|
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
sed -re "s/(p\\[[^]]+] *== *)('([^']|\\\\')+')/\\1QChar(\\2)/g" -i src/diff.cpp
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ];
|
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ kconfig kcrash kinit kparts ];
|
propagatedBuildInputs = [ kconfig kcrash kinit kparts ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user