2017-01-31 12:34:14 +00:00
|
|
|
{
|
2023-08-08 15:50:41 +00:00
|
|
|
mkDerivation, fetchurl, fetchpatch, lib,
|
2024-04-26 20:24:03 +00:00
|
|
|
extra-cmake-modules, kdoctools, wrapGAppsHook3,
|
2017-07-02 09:01:22 +00:00
|
|
|
kconfig, kinit, kjsembed, taglib, exiv2, podofo,
|
|
|
|
kcrash
|
2017-01-31 12:34:14 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "krename";
|
2022-09-01 19:08:03 +00:00
|
|
|
version = "5.0.2";
|
2018-07-02 05:38:29 +00:00
|
|
|
|
2017-05-16 15:56:41 +00:00
|
|
|
in mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2017-01-31 12:34:14 +00:00
|
|
|
|
2018-07-02 05:38:29 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://kde/stable/${pname}/${version}/src/${name}.tar.xz";
|
2022-09-01 19:08:03 +00:00
|
|
|
sha256 = "sha256-sjxgp93Z9ttN1/VaxV/MqKVY+miq+PpcuJ4er2kvI+0=";
|
2017-05-16 15:56:41 +00:00
|
|
|
};
|
2017-01-31 12:34:14 +00:00
|
|
|
|
2023-08-08 15:50:41 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-build-with-exiv2-0.28.patch";
|
|
|
|
url = "https://invent.kde.org/utilities/krename/-/commit/e7dd767a9a1068ee1fe1502c4d619b57d3b12add.patch";
|
|
|
|
hash = "sha256-JpLVbegRHJbXi/Z99nZt9kgNTetBi+L9GfKv5s3LAZw=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-04-10 13:30:26 +00:00
|
|
|
buildInputs = [ taglib exiv2 podofo ];
|
|
|
|
|
2024-04-26 20:24:03 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook3 ];
|
2019-04-10 13:30:26 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ kconfig kcrash kinit kjsembed ];
|
|
|
|
|
2020-08-23 04:43:32 +00:00
|
|
|
NIX_LDFLAGS = "-ltag";
|
|
|
|
|
2017-05-16 15:56:41 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A powerful batch renamer for KDE";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "krename";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://kde.org/applications/utilities/krename/";
|
2018-09-01 12:11:09 +00:00
|
|
|
license = licenses.gpl2;
|
2017-05-16 15:56:41 +00:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2019-04-10 13:30:26 +00:00
|
|
|
inherit (kconfig.meta) platforms;
|
2017-01-31 12:34:14 +00:00
|
|
|
};
|
|
|
|
}
|