nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 fetchFromGitLab,
4 lib,
5 extra-cmake-modules,
6 kdePackages,
7 taglib,
8 exiv2,
9 podofo_0_10,
10}:
11
12stdenv.mkDerivation (finalAttrs: {
13 pname = "krename";
14 version = "5.0.60-unstable-2025-09-02";
15
16 # For when the next stable release is made
17 # src = fetchurl {
18 # url = "mirror://kde/stable/krename/${version}/src/krename-${finalAttrs.version}.tar.xz";
19 # hash = "sha256-sjxgp93Z9ttN1/VaxV/MqKVY+miq+PpcuJ4er2kvI+0=";
20 # };
21
22 src = fetchFromGitLab {
23 domain = "invent.kde.org";
24 owner = "utilities";
25 repo = "krename";
26
27 rev = "5ad5f5a1f0a1c7573fa1b872a1472dec96fe0dd7";
28 hash = "sha256-fGNiIGGq10F71wh37aKDB7Q3fCxSXqttg/176LH3nVM=";
29 };
30
31 buildInputs = with kdePackages; [
32 exiv2
33 podofo_0_10
34 kio
35 kxmlgui
36 qtbase
37 qtdeclarative
38 qt5compat
39 taglib
40 ];
41
42 nativeBuildInputs = [
43 extra-cmake-modules
44 kdePackages.kdoctools
45 kdePackages.wrapQtAppsHook
46 ];
47
48 env.NIX_LDFLAGS = "-ltag";
49
50 meta = {
51 description = "Powerful batch renamer for KDE";
52 mainProgram = "krename";
53 homepage = "https://kde.org/applications/utilities/krename/";
54 license = with lib.licenses; [
55 bsd3
56 cc0
57 gpl2Plus
58 ];
59 maintainers = with lib.maintainers; [
60 peterhoeg
61 kuflierl
62 ];
63 inherit (kdePackages.qtbase.meta) platforms;
64 };
65})