Merge pull request #23886 from dtzWill/fix/timewarrior-install-docs-themes

timewarrior: patch to install all themes; use default install target.

authored by Jörg Thalheim and committed by GitHub 9ae51def 92bb91f7

+28 -5
+1 -5
pkgs/applications/misc/timewarrior/default.nix
··· 13 14 nativeBuildInputs = [ cmake ]; 15 16 - installPhase = '' 17 - mkdir -p $out/{bin,share/man/man1} 18 - cp -rv doc/man/*.1 $out/share/man/man1 19 - cp src/timew $out/bin/ 20 - ''; 21 22 meta = with stdenv.lib; { 23 description = "A command-line time tracker";
··· 13 14 nativeBuildInputs = [ cmake ]; 15 16 + patches = [ ./install-all-themes.patch ]; 17 18 meta = with stdenv.lib; { 19 description = "A command-line time tracker";
+27
pkgs/applications/misc/timewarrior/install-all-themes.patch
···
··· 1 + From e4a14c61bff3a55de42718dc11b282c4d5342995 Mon Sep 17 00:00:00 2001 2 + From: Will Dietz <w@wdtz.org> 3 + Date: Tue, 14 Mar 2017 07:51:02 -0500 4 + Subject: [PATCH] doc/themes: install all themes, not just 'dark.theme'. 5 + 6 + --- 7 + doc/themes/CMakeLists.txt | 7 +++++-- 8 + 1 file changed, 5 insertions(+), 2 deletions(-) 9 + 10 + diff --git a/doc/themes/CMakeLists.txt b/doc/themes/CMakeLists.txt 11 + index a954576..3a3b453 100644 12 + --- a/doc/themes/CMakeLists.txt 13 + +++ b/doc/themes/CMakeLists.txt 14 + @@ -2,5 +2,8 @@ cmake_minimum_required (VERSION 2.8) 15 + 16 + message ("-- Configuring theme documentation") 17 + 18 + -install (FILES README DESTINATION ${TIMEW_DOCDIR}/doc/themes) 19 + -install (FILES dark.theme DESTINATION ${TIMEW_DOCDIR}/doc/themes) 20 + +install (FILES README DESTINATION ${TIMEW_DOCDIR}/doc/themes) 21 + +install (FILES dark.theme DESTINATION ${TIMEW_DOCDIR}/doc/themes) 22 + +install (FILES dark_blue.theme DESTINATION ${TIMEW_DOCDIR}/doc/themes) 23 + +install (FILES dark_green.theme DESTINATION ${TIMEW_DOCDIR}/doc/themes) 24 + +install (FILES dark_red.theme DESTINATION ${TIMEW_DOCDIR}/doc/themes) 25 + -- 26 + 2.12.0 27 +