depot/third_party/nixpkgs/pkgs/tools/misc/h/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

28 lines
587 B
Nix

{ lib, stdenv, fetchFromGitHub, ruby }:
stdenv.mkDerivation rec {
pname = "h";
version = "1.0.3";
src = fetchFromGitHub {
owner = "zimbatm";
repo = "h";
rev = "v${version}";
hash = "sha256-RyQZ9F+rZ0a/90hljSyNCzYK8eA3rYJlJkV7B5NPRzY=";
};
buildInputs = [ ruby ];
installPhase = ''
mkdir -p $out/bin
cp h $out/bin/h
cp up $out/bin/up
'';
meta = with lib; {
description = "faster shell navigation of projects";
homepage = "https://github.com/zimbatm/h";
license = licenses.mit;
maintainers = [ maintainers.zimbatm ];
};
}