nixpkgs/pkgs/applications/misc/hr/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
656 B
Nix
Raw Permalink Normal View History

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