36f1bcbeb8
Keep the `source` attrset distinct to prevent its entries from merging with the top level attrs. Since each type of source has a different set of entries for `source`, this is the easiest way to keep them together. This will pave the way for a new `url` type of source. This is a mass-rebuild of many ruby packages, notably those using `git` type sources.
35 lines
815 B
Nix
35 lines
815 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;
|
|
};
|
|
}
|