Skip to content

Commit

Permalink
timewarrior: patch to install all themes; use default install target.
Browse files Browse the repository at this point in the history
(cherry picked from commit dc32b87)
  • Loading branch information
dtzWill authored and Mic92 committed Mar 16, 2017
1 parent 3913327 commit 3879491
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
6 changes: 1 addition & 5 deletions pkgs/applications/misc/timewarrior/default.nix
Expand Up @@ -13,11 +13,7 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ cmake ];

installPhase = ''
mkdir -p $out/{bin,share/man/man1}
cp -rv doc/man/*.1 $out/share/man/man1
cp src/timew $out/bin/
'';
patches = [ ./install-all-themes.patch ];

meta = with stdenv.lib; {
description = "A command-line time tracker";
Expand Down
27 changes: 27 additions & 0 deletions pkgs/applications/misc/timewarrior/install-all-themes.patch
@@ -0,0 +1,27 @@
From e4a14c61bff3a55de42718dc11b282c4d5342995 Mon Sep 17 00:00:00 2001
From: Will Dietz <w@wdtz.org>
Date: Tue, 14 Mar 2017 07:51:02 -0500
Subject: [PATCH] doc/themes: install all themes, not just 'dark.theme'.

---
doc/themes/CMakeLists.txt | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/doc/themes/CMakeLists.txt b/doc/themes/CMakeLists.txt
index a954576..3a3b453 100644
--- a/doc/themes/CMakeLists.txt
+++ b/doc/themes/CMakeLists.txt
@@ -2,5 +2,8 @@ cmake_minimum_required (VERSION 2.8)

message ("-- Configuring theme documentation")

-install (FILES README DESTINATION ${TIMEW_DOCDIR}/doc/themes)
-install (FILES dark.theme DESTINATION ${TIMEW_DOCDIR}/doc/themes)
+install (FILES README DESTINATION ${TIMEW_DOCDIR}/doc/themes)
+install (FILES dark.theme DESTINATION ${TIMEW_DOCDIR}/doc/themes)
+install (FILES dark_blue.theme DESTINATION ${TIMEW_DOCDIR}/doc/themes)
+install (FILES dark_green.theme DESTINATION ${TIMEW_DOCDIR}/doc/themes)
+install (FILES dark_red.theme DESTINATION ${TIMEW_DOCDIR}/doc/themes)
--
2.12.0

0 comments on commit 3879491

Please sign in to comment.