2019-11-01 09:20:00 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2019-02-07 01:17:17 +00:00
|
|
|
|
2019-11-01 09:20:00 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "chezmoi";
|
2020-02-14 13:30:57 +00:00
|
|
|
version = "1.7.13";
|
2019-02-07 01:17:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "twpayne";
|
|
|
|
repo = "chezmoi";
|
|
|
|
rev = "v${version}";
|
2020-02-14 13:30:57 +00:00
|
|
|
sha256 = "1xqmr7sps5s3ib4q91z7drwlglp1av37gb2jm0zw7y3ijyp2c749";
|
2019-02-07 01:17:17 +00:00
|
|
|
};
|
|
|
|
|
2020-01-31 09:20:00 +00:00
|
|
|
modSha256 = "07fglc3k3a5y70slly4ri3izwnyk4nwghmvkjwgc8lbw8m1zx0r8";
|
2019-02-07 01:17:17 +00:00
|
|
|
|
|
|
|
buildFlagsArray = [
|
2019-11-01 09:20:00 +00:00
|
|
|
"-ldflags=-s -w -X github.com/twpayne/chezmoi/cmd.VersionStr=${version}"
|
2019-02-07 01:17:17 +00:00
|
|
|
];
|
|
|
|
|
2019-11-01 09:20:00 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --bash completions/chezmoi-completion.bash
|
|
|
|
installShellCompletion --fish completions/chezmoi.fish
|
|
|
|
installShellCompletion --zsh completions/chezmoi.zsh
|
|
|
|
'';
|
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2019-02-07 01:17:17 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/twpayne/chezmoi;
|
|
|
|
description = "Manage your dotfiles across multiple machines, securely";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jhillyerd ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|