Skip to content

Commit

Permalink
hss: init at 1.0.1 (#25936)
Browse files Browse the repository at this point in the history
* hss: init at 1.0.1

* hss: use buildRubyGem instead of bundler
  • Loading branch information
nixy authored and Mic92 committed May 22, 2017
1 parent b1b61d0 commit c3f434f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
34 changes: 34 additions & 0 deletions pkgs/tools/networking/hss/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ lib, buildRubyGem, ruby, openssh }:

# Example ~/.hss.yml
#---
#patterns:
# - note: Basic test
# example: g -> github
# short: '^g$'
# long: 'git@github.com'

buildRubyGem rec {
name = "hss-${version}";
inherit ruby;
gemName = "hss";
version = "1.0.1";
sha256 = "0hdfpxxqsh6gisn8mm0knsl1aig9fir0h2x9sirk3gr36qbz5xa4";

postInstall = ''
substituteInPlace $GEM_HOME/gems/${gemName}-${version}/bin/hss \
--replace \
"'ssh'" \
"'${openssh}/bin/ssh'"
'';

meta = with lib; {
description = ''
A SSH helper that uses regex and fancy expansion to dynamically manage SSH shortcuts.
'';
homepage = https://github.com/akerl/hss;
license = licenses.mit;
maintainers = with maintainers; [ nixy ];
platforms = platforms.unix;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18817,4 +18817,6 @@ with pkgs;
xib2nib = callPackage ../development/tools/xib2nib {};

linode-cli = callPackage ../tools/virtualization/linode-cli { };

hss = callPackage ../tools/networking/hss {};
}

0 comments on commit c3f434f

Please sign in to comment.