mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 08:01:14 +00:00
37 lines
1 KiB
Nix
37 lines
1 KiB
Nix
{ stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "chezmoi";
|
|
version = "1.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "twpayne";
|
|
repo = "chezmoi";
|
|
rev = "v${version}";
|
|
sha256 = "1b8y0wq3myhvjdnwl0i4x85iil7i7kmsjajvbw1a47afm83jkbaw";
|
|
};
|
|
|
|
vendorSha256 = "1za47n08iamhfl4ky928rixgadflmz86vnmnwbczd167bdndh5rq";
|
|
|
|
buildFlagsArray = [
|
|
"-ldflags=-s -w -X main.version=${version} -X main.builtBy=nixpkgs"
|
|
];
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
installShellCompletion --bash --name chezmoi.bash completions/chezmoi-completion.bash
|
|
installShellCompletion --fish completions/chezmoi.fish
|
|
installShellCompletion --zsh completions/chezmoi.zsh
|
|
'';
|
|
|
|
subPackages = [ "." ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://www.chezmoi.io/";
|
|
description = "Manage your dotfiles across multiple machines, securely";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jhillyerd ];
|
|
platforms = platforms.all;
|
|
};
|
|
} |