nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 mkDerivation,
3 fetchurl,
4 fetchpatch,
5 lib,
6 extra-cmake-modules,
7 kdoctools,
8 wrapGAppsHook3,
9 kconfig,
10 kinit,
11 kjsembed,
12 taglib,
13 exiv2,
14 podofo_0_9,
15 kcrash,
16}:
17
18let
19 pname = "krename";
20 version = "5.0.2";
21
22in
23mkDerivation rec {
24 name = "${pname}-${version}";
25
26 src = fetchurl {
27 url = "mirror://kde/stable/${pname}/${version}/src/${name}.tar.xz";
28 sha256 = "sha256-sjxgp93Z9ttN1/VaxV/MqKVY+miq+PpcuJ4er2kvI+0=";
29 };
30
31 patches = [
32 (fetchpatch {
33 name = "fix-build-with-exiv2-0.28.patch";
34 url = "https://invent.kde.org/utilities/krename/-/commit/e7dd767a9a1068ee1fe1502c4d619b57d3b12add.patch";
35 hash = "sha256-JpLVbegRHJbXi/Z99nZt9kgNTetBi+L9GfKv5s3LAZw=";
36 })
37 ];
38
39 buildInputs = [
40 taglib
41 exiv2
42 podofo_0_9
43 ];
44
45 nativeBuildInputs = [
46 extra-cmake-modules
47 kdoctools
48 wrapGAppsHook3
49 ];
50
51 propagatedBuildInputs = [
52 kconfig
53 kcrash
54 kinit
55 kjsembed
56 ];
57
58 NIX_LDFLAGS = "-ltag";
59
60 meta = with lib; {
61 description = "Powerful batch renamer for KDE";
62 mainProgram = "krename";
63 homepage = "https://kde.org/applications/utilities/krename/";
64 license = licenses.gpl2;
65 maintainers = with maintainers; [ peterhoeg ];
66 inherit (kconfig.meta) platforms;
67 };
68}