hr: init at 1.2 (#23153)

* hr: init at 1.2

* hr: simplify build
This commit is contained in:
Matthias Beyer 2017-02-27 08:42:44 +01:00 committed by Jörg Thalheim
parent 0680289ef8
commit 2cc06f0203
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,28 @@
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "hr-${version}";
version = "1.2";
src = fetchFromGitHub {
owner = "LuRsT";
repo = "hr";
rev = version;
sha256 = "162vkip2772jl59lschpinimpg4ssiyg7fq0va5cx4d7wldpqmks";
};
dontBuild = true;
installFlags = [ "PREFIX=$(out)" "MANPREFIX=$(out)/share" ];
preInstall = ''
mkdir -p $out/{bin,share}
'';
meta = with stdenv.lib; {
homepage = https://github.com/LuRsT/hr;
description = "A horizontal bar for your terminal";
license = licenses.mit;
maintainers = [ maintainers.matthiasbeyer ];
platforms = platforms.unix;
};
}

View File

@ -924,6 +924,8 @@ with pkgs;
hexio = callPackage ../development/tools/hexio { };
hr = callPackage ../applications/misc/hr { };
interlock = callPackage ../servers/interlock {};
kapacitor = callPackage ../servers/monitoring/kapacitor { };