2021-01-11 07:54:33 +00:00
|
|
|
{ lib, 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";
|
2021-01-18 12:57:06 +00:00
|
|
|
version = "1.8.10";
|
2019-02-07 01:17:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "twpayne";
|
|
|
|
repo = "chezmoi";
|
|
|
|
rev = "v${version}";
|
2021-01-18 12:57:06 +00:00
|
|
|
sha256 = "sha256-S1bnzuOZGQLdVJUH+A29KxF84dj2OeLJ4XajfTDdjUY=";
|
2019-02-07 01:17:17 +00:00
|
|
|
};
|
|
|
|
|
2021-01-18 12:57:06 +00:00
|
|
|
vendorSha256 = "sha256-X1h0EcUf8MWt929huNjt0WnhFqhVZu07JGi7c5hdXoY=";
|
2019-02-07 01:17:17 +00:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-02-07 01:17:17 +00:00
|
|
|
buildFlagsArray = [
|
2020-04-04 21:15:25 +01:00
|
|
|
"-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 = [ "." ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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 ];
|
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|