1{
2 lib,
3 bundlerEnv,
4 bundlerUpdateScript,
5 git,
6}:
7bundlerEnv {
8 pname = "homesick";
9
10 gemdir = ./.;
11
12 # Cannot use `wrapProgram` because the the help is aware of the file name.
13 postInstall = ''
14 rm $out/bin/thor
15 sed 1a'ENV["PATH"] = "${git}/bin:#{ENV["PATH"] ? ":#{ENV["PATH"]}" : "" }"' -i $out/bin/homesick
16 '';
17
18 passthru.updateScript = bundlerUpdateScript "homesick";
19
20 meta = with lib; {
21 description = "Your home directory is your castle. Don't leave your dotfiles behind";
22 longDescription = ''
23 Homesick is sorta like rip, but for dotfiles. It uses git to clone a repository containing
24 dotfiles, and saves them in ~/.homesick. It then allows you to symlink all the dotfiles into
25 place with a single command.
26 '';
27 homepage = "https://github.com/technicalpickles/homesick";
28 license = licenses.mit;
29 maintainers = with maintainers; [
30 aaronschif
31 nicknovitski
32 ];
33 platforms = platforms.unix;
34 mainProgram = "homesick";
35 };
36}