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