1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 09:02:46 +00:00
nixpkgs/pkgs/tools/misc/chezmoi/default.nix

39 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
2019-02-07 01:17:17 +00:00
2019-11-01 09:20:00 +00:00
buildGoModule rec {
pname = "chezmoi";
2020-11-01 07:37:17 +00:00
version = "1.8.8";
2019-02-07 01:17:17 +00:00
src = fetchFromGitHub {
owner = "twpayne";
repo = "chezmoi";
rev = "v${version}";
2020-11-01 07:37:17 +00:00
sha256 = "1ax0rq341k8mi7lghw1rkmlg802fd22zpql5v3g6lhgy6s1xq9wk";
2019-02-07 01:17:17 +00:00
};
2020-11-01 07:37:17 +00:00
vendorSha256 = "08x81r9y2x1xcld1s6maspq94wr817w9aqjdv226058ran0492s8";
2019-02-07 01:17:17 +00:00
doCheck = false;
2019-02-07 01:17:17 +00:00
buildFlagsArray = [
"-ldflags=-s -w -X main.version=${version} -X main.builtBy=nixpkgs"
2019-02-07 01:17:17 +00:00
];
2019-11-01 09:20:00 +00:00
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
2020-03-04 23:00:00 +00:00
installShellCompletion --bash --name chezmoi.bash completions/chezmoi-completion.bash
2019-11-01 09:20:00 +00:00
installShellCompletion --fish completions/chezmoi.fish
installShellCompletion --zsh completions/chezmoi.zsh
'';
subPackages = [ "." ];
2019-02-07 01:17:17 +00:00
meta = with stdenv.lib; {
2020-03-04 23:00:00 +00:00
homepage = "https://www.chezmoi.io/";
2019-02-07 01:17:17 +00:00
description = "Manage your dotfiles across multiple machines, securely";
license = licenses.mit;
maintainers = with maintainers; [ jhillyerd ];
};
}