Skip to content

Commit c3f434f

Browse files
nixyMic92
authored andcommittedMay 22, 2017
hss: init at 1.0.1 (#25936)
* hss: init at 1.0.1 * hss: use buildRubyGem instead of bundler
1 parent b1b61d0 commit c3f434f

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
 

‎pkgs/tools/networking/hss/default.nix

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{ lib, buildRubyGem, ruby, openssh }:
2+
3+
# Example ~/.hss.yml
4+
#---
5+
#patterns:
6+
# - note: Basic test
7+
# example: g -> github
8+
# short: '^g$'
9+
# long: 'git@github.com'
10+
11+
buildRubyGem rec {
12+
name = "hss-${version}";
13+
inherit ruby;
14+
gemName = "hss";
15+
version = "1.0.1";
16+
sha256 = "0hdfpxxqsh6gisn8mm0knsl1aig9fir0h2x9sirk3gr36qbz5xa4";
17+
18+
postInstall = ''
19+
substituteInPlace $GEM_HOME/gems/${gemName}-${version}/bin/hss \
20+
--replace \
21+
"'ssh'" \
22+
"'${openssh}/bin/ssh'"
23+
'';
24+
25+
meta = with lib; {
26+
description = ''
27+
A SSH helper that uses regex and fancy expansion to dynamically manage SSH shortcuts.
28+
'';
29+
homepage = https://github.com/akerl/hss;
30+
license = licenses.mit;
31+
maintainers = with maintainers; [ nixy ];
32+
platforms = platforms.unix;
33+
};
34+
}

‎pkgs/top-level/all-packages.nix

+2
Original file line numberDiff line numberDiff line change
@@ -18817,4 +18817,6 @@ with pkgs;
1881718817
xib2nib = callPackage ../development/tools/xib2nib {};
1881818818

1881918819
linode-cli = callPackage ../tools/virtualization/linode-cli { };
18820+
18821+
hss = callPackage ../tools/networking/hss {};
1882018822
}

0 commit comments

Comments
 (0)
Please sign in to comment.