2019-07-22 13:02:47 +01:00
|
|
|
{ lib, bundlerEnv, bundlerUpdateScript, git }:
|
2016-01-19 01:11:50 +00:00
|
|
|
bundlerEnv {
|
2019-07-22 13:02:47 +01:00
|
|
|
pname = "homesick";
|
2016-01-19 01:11:50 +00:00
|
|
|
|
2017-01-17 23:20:34 +00:00
|
|
|
gemdir = ./.;
|
2016-01-19 01:11:50 +00:00
|
|
|
|
|
|
|
# Cannot use `wrapProgram` because the the help is aware of the file name.
|
|
|
|
postInstall = ''
|
|
|
|
rm $out/bin/thor
|
|
|
|
sed 1a'ENV["PATH"] = "${git}/bin:#{ENV["PATH"] ? ":#{ENV["PATH"]}" : "" }"' -i $out/bin/homesick
|
|
|
|
'';
|
|
|
|
|
2019-07-22 13:02:47 +01:00
|
|
|
passthru.updateScript = bundlerUpdateScript "homesick";
|
|
|
|
|
2016-01-19 01:11:50 +00:00
|
|
|
meta = with lib; {
|
2016-02-27 17:24:00 +00:00
|
|
|
description = "Your home directory is your castle. Don't leave your dotfiles behind";
|
2017-12-05 22:20:11 +00:00
|
|
|
longDescription =
|
2016-01-19 01:11:50 +00:00
|
|
|
''
|
|
|
|
Homesick is sorta like rip, but for dotfiles. It uses git to clone a repository containing
|
|
|
|
dotfiles, and saves them in ~/.homesick. It then allows you to symlink all the dotfiles into
|
|
|
|
place with a single command.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/technicalpickles/homesick";
|
2016-01-19 01:11:50 +00:00
|
|
|
license = licenses.mit;
|
2019-07-22 13:02:47 +01:00
|
|
|
maintainers = with maintainers; [ aaronschif nicknovitski ];
|
2016-01-19 01:11:50 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|