about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPeter Hoeg <peter@speartail.com>2017-01-31 20:34:14 +0800
committerPeter Hoeg <peter@speartail.com>2017-01-31 20:36:11 +0800
commit338dcba251d2b2fb245db95be233db6aaa56ed86 (patch)
treedfa46c2c366f60f8494594b43029e4170428fb28 /pkgs
parentf66d7823ece6fa4bf99e56fa4b4cb0ab16522839 (diff)
downloadnixlib-338dcba251d2b2fb245db95be233db6aaa56ed86.tar
nixlib-338dcba251d2b2fb245db95be233db6aaa56ed86.tar.gz
nixlib-338dcba251d2b2fb245db95be233db6aaa56ed86.tar.bz2
nixlib-338dcba251d2b2fb245db95be233db6aaa56ed86.tar.lz
nixlib-338dcba251d2b2fb245db95be233db6aaa56ed86.tar.xz
nixlib-338dcba251d2b2fb245db95be233db6aaa56ed86.tar.zst
nixlib-338dcba251d2b2fb245db95be233db6aaa56ed86.zip
krename-qt5: init at 20161228
Upstream hasn't made a proper release based on qt5/kf5, so I'm adding this
package in addition to the kde4 based package instead of replacing it.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/misc/krename/kde4.nix (renamed from pkgs/applications/misc/krename/default.nix)0
-rw-r--r--pkgs/applications/misc/krename/kde5.nix35
-rw-r--r--pkgs/top-level/all-packages.nix4
3 files changed, 38 insertions, 1 deletions
diff --git a/pkgs/applications/misc/krename/default.nix b/pkgs/applications/misc/krename/kde4.nix
index 1e4da7fa11f7..1e4da7fa11f7 100644
--- a/pkgs/applications/misc/krename/default.nix
+++ b/pkgs/applications/misc/krename/kde4.nix
diff --git a/pkgs/applications/misc/krename/kde5.nix b/pkgs/applications/misc/krename/kde5.nix
new file mode 100644
index 000000000000..a2137060ef64
--- /dev/null
+++ b/pkgs/applications/misc/krename/kde5.nix
@@ -0,0 +1,35 @@
+{
+  kdeDerivation, kdeWrapper, fetchFromGitHub, lib,
+  ecm, kdoctools, kconfig, kinit, kjsembed,
+  taglib, exiv2, podofo
+}:
+
+let
+  pname = "krename";
+  version = "20161228";
+  unwrapped = kdeDerivation rec {
+    name = "${pname}-${version}";
+
+    src = fetchFromGitHub {
+      owner  = "KDE";
+      repo   = "krename";
+      rev    = "4e55c2bef50898eb4a6485ce068379b166121895";
+      sha256 = "09yz3sxy2l6radfybkj2f7224ggf315vnvyksk0aq8f03gan6cbp";
+    };
+
+    meta = with lib; {
+      homepage = http://www.krename.net;
+      description = "A powerful batch renamer for KDE";
+      inherit (kconfig.meta) platforms;
+      maintainers = with maintainers; [ urkud peterhoeg ];
+    };
+
+    buildInputs = [ taglib exiv2 podofo ];
+    nativeBuildInputs = [ ecm kdoctools ];
+    propagatedBuildInputs = [ kconfig kinit kjsembed ];
+  };
+
+in kdeWrapper {
+  inherit unwrapped;
+  targets = [ "bin/krename" ];
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 28668e0fc1c2..d2b4429b7aec 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2415,6 +2415,8 @@ with pkgs;
 
   kpcli = callPackage ../tools/security/kpcli { };
 
+  krename-qt5 = qt5.callPackage ../applications/misc/krename/kde5.nix { };
+
   kronometer = qt5.callPackage ../tools/misc/kronometer { };
 
   peruse = qt5.callPackage ../tools/misc/peruse { };
@@ -16593,7 +16595,7 @@ with pkgs;
 
           kvirc = callPackage ../applications/networking/irc/kvirc { };
 
-          krename = callPackage ../applications/misc/krename {
+          krename = callPackage ../applications/misc/krename/kde4.nix {
             taglib = taglib_1_9;
           };