diff options
author | Andrew Miller <andrewmiller237@gmail.com> | 2017-05-22 02:06:11 -0400 |
---|---|---|
committer | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-05-22 07:06:11 +0100 |
commit | c3f434fd624a1e366318155afcc28555ca490493 (patch) | |
tree | bcbc389dc8f06ca31b20457573258e0f3785673e /pkgs/tools | |
parent | b1b61d0988a458e7b0bbb75cac4fd12a246a83e1 (diff) | |
download | nixlib-c3f434fd624a1e366318155afcc28555ca490493.tar nixlib-c3f434fd624a1e366318155afcc28555ca490493.tar.gz nixlib-c3f434fd624a1e366318155afcc28555ca490493.tar.bz2 nixlib-c3f434fd624a1e366318155afcc28555ca490493.tar.lz nixlib-c3f434fd624a1e366318155afcc28555ca490493.tar.xz nixlib-c3f434fd624a1e366318155afcc28555ca490493.tar.zst nixlib-c3f434fd624a1e366318155afcc28555ca490493.zip |
hss: init at 1.0.1 (#25936)
* hss: init at 1.0.1 * hss: use buildRubyGem instead of bundler
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/networking/hss/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/networking/hss/default.nix b/pkgs/tools/networking/hss/default.nix new file mode 100644 index 000000000000..cfc9986b0db8 --- /dev/null +++ b/pkgs/tools/networking/hss/default.nix @@ -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; + }; +} |