depot/pkgs/tools/misc/homesick/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

29 lines
998 B
Nix

{ lib, bundlerEnv, bundlerUpdateScript, git }:
bundlerEnv {
pname = "homesick";
gemdir = ./.;
# 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
'';
passthru.updateScript = bundlerUpdateScript "homesick";
meta = with lib; {
description = "Your home directory is your castle. Don't leave your dotfiles behind";
longDescription =
''
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.
'';
homepage = "https://github.com/technicalpickles/homesick";
license = licenses.mit;
maintainers = with maintainers; [ aaronschif nicknovitski ];
platforms = platforms.unix;
mainProgram = "homesick";
};
}