Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 50c661c4476c
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 546fe02875de
Choose a head ref
  • 1 commit
  • 2 files changed
  • 2 contributors

Commits on Jan 22, 2020

  1. h: init at 1.0.0 (#78017)

    Co-Authored-By: Jon <jonringer@users.noreply.github.com>
    zimbatm and Jon authored Jan 22, 2020
    Copy the full SHA
    546fe02 View commit details
Showing with 30 additions and 0 deletions.
  1. +28 −0 pkgs/tools/misc/h/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
28 changes: 28 additions & 0 deletions pkgs/tools/misc/h/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -1593,6 +1593,8 @@ in

direnv = callPackage ../tools/misc/direnv { };

h = callPackage ../tools/misc/h { };

discount = callPackage ../tools/text/discount { };

diskscan = callPackage ../tools/misc/diskscan { };