nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 40 lines 846 B view raw
1{ 2 lib, 3 buildRubyGem, 4 ruby, 5 openssh, 6}: 7 8# Example ~/.hss.yml 9#--- 10#patterns: 11# - note: Basic test 12# example: g -> github 13# short: '^g$' 14# long: 'git@github.com' 15 16buildRubyGem rec { 17 name = "hss-${version}"; 18 inherit ruby; 19 gemName = "hss"; 20 version = "1.0.1"; 21 source.sha256 = "0hdfpxxqsh6gisn8mm0knsl1aig9fir0h2x9sirk3gr36qbz5xa4"; 22 23 postInstall = '' 24 substituteInPlace $GEM_HOME/gems/${gemName}-${version}/bin/hss \ 25 --replace \ 26 "'ssh'" \ 27 "'${openssh}/bin/ssh'" 28 ''; 29 30 meta = with lib; { 31 description = '' 32 A SSH helper that uses regex and fancy expansion to dynamically manage SSH shortcuts. 33 ''; 34 homepage = "https://github.com/akerl/hss"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ nixy ]; 37 platforms = platforms.unix; 38 mainProgram = "hss"; 39 }; 40}