2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2017-02-27 07:42:44 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "hr";
|
2020-11-02 11:35:17 +00:00
|
|
|
version = "1.3";
|
2017-02-27 07:42:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LuRsT";
|
|
|
|
repo = "hr";
|
|
|
|
rev = version;
|
2020-11-02 11:35:17 +00:00
|
|
|
sha256 = "068kq37lbqfjzh28rlvkprni38ii991naawylwvq6d43y9dpzs2b";
|
2017-02-27 07:42:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
installFlags = [ "PREFIX=$(out)" "MANPREFIX=$(out)/share" ];
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/{bin,share}
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/LuRsT/hr";
|
2017-02-27 07:42:44 +00:00
|
|
|
description = "A horizontal bar for your terminal";
|
|
|
|
license = licenses.mit;
|
2019-02-20 18:52:48 +00:00
|
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
2017-02-27 07:42:44 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|