2017-05-22 07:06:11 +01:00
|
|
|
{ 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";
|
2017-10-05 09:10:57 +01:00
|
|
|
source.sha256 = "0hdfpxxqsh6gisn8mm0knsl1aig9fir0h2x9sirk3gr36qbz5xa4";
|
2017-05-22 07:06:11 +01:00
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/akerl/hss";
|
2017-05-22 07:06:11 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nixy ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|