mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 21:33:07 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
30 lines
654 B
Nix
30 lines
654 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "hr";
|
|
version = "1.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LuRsT";
|
|
repo = "hr";
|
|
rev = version;
|
|
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 = "Horizontal bar for your terminal";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
platforms = platforms.unix;
|
|
mainProgram = "hr";
|
|
};
|
|
}
|