From c3f434fd624a1e366318155afcc28555ca490493 Mon Sep 17 00:00:00 2001 From: Andrew Miller Date: Mon, 22 May 2017 02:06:11 -0400 Subject: [PATCH] hss: init at 1.0.1 (#25936) * hss: init at 1.0.1 * hss: use buildRubyGem instead of bundler --- pkgs/tools/networking/hss/default.nix | 34 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/tools/networking/hss/default.nix 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 239972e57fa0..f7bc4d31974c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18817,4 +18817,6 @@ with pkgs; xib2nib = callPackage ../development/tools/xib2nib {}; linode-cli = callPackage ../tools/virtualization/linode-cli { }; + + hss = callPackage ../tools/networking/hss {}; }