depot/third_party/nixpkgs/pkgs/tools/networking/hss/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

34 lines
817 B
Nix

{ 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";
source.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;
};
}