diff options
author | zimbatm <zimbatm@zimbatm.com> | 2020-01-22 09:49:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-22 09:49:54 +0000 |
commit | 546fe02875de012f3a0adae465c4e8da6dad6c9f (patch) | |
tree | 5e5be985bdda2cb1ef5b9470d153a282d10ab160 /pkgs/tools/misc/h | |
parent | 50c661c4476c96dfa5cd1ca8843ee16b4b1111aa (diff) |
h: init at 1.0.0 (#78017)
Co-Authored-By: Jon <jonringer@users.noreply.github.com>
Diffstat (limited to 'pkgs/tools/misc/h')
-rw-r--r-- | pkgs/tools/misc/h/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/misc/h/default.nix b/pkgs/tools/misc/h/default.nix new file mode 100644 index 0000000000000..f4897a54cb133 --- /dev/null +++ b/pkgs/tools/misc/h/default.nix @@ -0,0 +1,28 @@ +{ 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 ]; + }; +} |