From d6e4c1b750be049227870bc635d28acc46033d0e Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Wed, 4 May 2016 00:33:27 +0200 Subject: [PATCH] thinkfan: install manual, README and examples READMEs usually just waste those precious kilobytes, but both the manual page and --help output refer to this one quite a bit. --- pkgs/tools/system/thinkfan/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/system/thinkfan/default.nix b/pkgs/tools/system/thinkfan/default.nix index 3e97a4b64a3..170d3b3305e 100644 --- a/pkgs/tools/system/thinkfan/default.nix +++ b/pkgs/tools/system/thinkfan/default.nix @@ -18,14 +18,17 @@ stdenv.mkDerivation rec { ''; installPhase = '' - mkdir -p $out/bin; - mv thinkfan $out/bin/; + install -Dm755 {.,$out/bin}/thinkfan + + cd $sourceRoot + install -Dm644 {.,$out/share/doc/thinkfan}/README + cp -R examples $out/share/doc/thinkfan + install -Dm644 {.,$out/share/man/man1}/thinkfan.1 ''; meta = { - description = ""; license = stdenv.lib.licenses.gpl3; - homepage = "http://thinkfan.sourceforge.net/"; + homepage = http://thinkfan.sourceforge.net/; maintainers = with stdenv.lib.maintainers; [ iElectric ]; platforms = stdenv.lib.platforms.linux; };