1 { lib, buildGoModule, fetchFromGitHub, installShellFiles }:
7 src = fetchFromGitHub {
11 sha256 = "sha256-yDd9u9cwC+bjB0ZQW0EgEDaHmWwkUprwXIiVrOVP2nk=";
14 vendorSha256 = "sha256-c6YIWpC8sQA/gbgD2vuuFvwccEE00aUrj6gcPpJsn0k=";
19 "-ldflags=-s -w -X main.version=${version} -X main.builtBy=nixpkgs"
22 nativeBuildInputs = [ installShellFiles ];
25 installShellCompletion --bash --name chezmoi.bash completions/chezmoi-completion.bash
26 installShellCompletion --fish completions/chezmoi.fish
27 installShellCompletion --zsh completions/chezmoi.zsh
30 subPackages = [ "." ];
33 homepage = "https://www.chezmoi.io/";
34 description = "Manage your dotfiles across multiple machines, securely";
35 license = licenses.mit;
36 maintainers = with maintainers; [ jhillyerd ];