nixpkgs-suyu/pkgs/applications/misc/hr/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

28 lines
633 B
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "hr";
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;
};
}