mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 15:15:36 +00:00
546fe02875
Co-Authored-By: Jon <jonringer@users.noreply.github.com>
29 lines
602 B
Nix
29 lines
602 B
Nix
{ stdenv, fetchFromGitHub, makeWrapper, ruby }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "h";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zimbatm";
|
|
repo = "h";
|
|
rev = "v${version}";
|
|
hash = "sha256-chGrMtvLyyNtlM7PO1olVdkzkvMOk6OibHw+mqwVxIM=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|