2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, ruby }:
|
2020-01-22 09:49:54 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "h";
|
|
|
|
version = "1.0.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zimbatm";
|
|
|
|
repo = "h";
|
|
|
|
rev = "v${version}";
|
2020-06-01 09:59:41 +01:00
|
|
|
sha256 = "10y42nn9lgkwdjia74qfyf937nam4md3pkyfjinj7jybvcran4bj";
|
2020-01-22 09:49:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ruby ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp h $out/bin/h
|
|
|
|
cp up $out/bin/up
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-01-22 09:49:54 +00:00
|
|
|
description = "faster shell navigation of projects";
|
|
|
|
homepage = "https://github.com/zimbatm/h";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.zimbatm ];
|
|
|
|
};
|
|
|
|
}
|