mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
29 lines
605 B
Nix
29 lines
605 B
Nix
{ stdenv, fetchFromGitHub, makeWrapper, ruby }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "h";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zimbatm";
|
|
repo = "h";
|
|
rev = "v${version}";
|
|
sha256 = "10y42nn9lgkwdjia74qfyf937nam4md3pkyfjinj7jybvcran4bj";
|
|
};
|
|
|
|
buildInputs = [ ruby ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp h $out/bin/h
|
|
cp up $out/bin/up
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "faster shell navigation of projects";
|
|
homepage = "https://github.com/zimbatm/h";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.zimbatm ];
|
|
};
|
|
}
|