about summary refs log tree commit diff
path: root/pkgs/applications/kde/ksmtp
diff options
context:
space:
mode:
authorgnidorah <gnidorah@users.noreply.github.com>2017-12-22 19:37:16 +0300
committergnidorah <gnidorah@users.noreply.github.com>2017-12-24 12:54:19 +0300
commit7dc2db982cb0acef616a7777faeb40be439586cc (patch)
treebb81b59a025f7f45f705e2dfddda1c5ed58096d5 /pkgs/applications/kde/ksmtp
parenta8ba8405d8ac5807d81551c3d515fd9acd854442 (diff)
kdeApplications.kmailtransport: fix build
Diffstat (limited to 'pkgs/applications/kde/ksmtp')
-rw-r--r--pkgs/applications/kde/ksmtp/0001-Use-KDE_INSTALL_TARGETS_DEFAULT_ARGS-when-installing.patch25
-rw-r--r--pkgs/applications/kde/ksmtp/default.nix17
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/applications/kde/ksmtp/0001-Use-KDE_INSTALL_TARGETS_DEFAULT_ARGS-when-installing.patch b/pkgs/applications/kde/ksmtp/0001-Use-KDE_INSTALL_TARGETS_DEFAULT_ARGS-when-installing.patch
new file mode 100644
index 0000000000000..74e83761eb7d5
--- /dev/null
+++ b/pkgs/applications/kde/ksmtp/0001-Use-KDE_INSTALL_TARGETS_DEFAULT_ARGS-when-installing.patch
@@ -0,0 +1,25 @@
+From 749769232e7387ec8c8f2d3da845d8a6ae7d5977 Mon Sep 17 00:00:00 2001
+From: gnidorah <gnidorah@users.noreply.github.com>
+Date: Fri, 22 Dec 2017 19:32:47 +0300
+Subject: [PATCH] Use KDE_INSTALL_TARGETS_DEFAULT_ARGS when installing targets
+
+---
+ src/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 83c2bcb..5f6d47c 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -51,7 +51,7 @@ ecm_generate_headers(KSMTP_CamelCase_HEADERS
+     REQUIRED_HEADERS KSMTP_HEADERS
+ )
+ 
+-install(TARGETS KPimSMTP EXPORT KPimSMTPTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})
++install(TARGETS KPimSMTP EXPORT KPimSMTPTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
+ 
+ install(FILES
+     ${CMAKE_CURRENT_BINARY_DIR}/ksmtp_export.h
+-- 
+2.15.1
+
diff --git a/pkgs/applications/kde/ksmtp/default.nix b/pkgs/applications/kde/ksmtp/default.nix
new file mode 100644
index 0000000000000..6a5f51a17bfe9
--- /dev/null
+++ b/pkgs/applications/kde/ksmtp/default.nix
@@ -0,0 +1,17 @@
+{
+  mkDerivation, lib, kdepimTeam,
+  extra-cmake-modules, kdoctools,
+  kcoreaddons, kio, kmime, cyrus_sasl
+}:
+
+mkDerivation {
+  name = "ksmtp";
+  meta = {
+    license = with lib.licenses; [ gpl2 lgpl21 fdl12 ];
+    maintainers = kdepimTeam;
+  };
+  nativeBuildInputs = [ extra-cmake-modules kdoctools ];
+  buildInputs = [ kcoreaddons kio kmime ];
+  propagatedBuildInputs = [ cyrus_sasl ];
+  patches = [ ./0001-Use-KDE_INSTALL_TARGETS_DEFAULT_ARGS-when-installing.patch ];
+}