nixpkgs/pkgs/tools/misc/chezmoi/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.1 KiB
Nix
Raw Normal View History

2022-12-26 19:55:25 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
2019-02-07 01:17:17 +00:00
2019-11-01 09:20:00 +00:00
buildGoModule rec {
pname = "chezmoi";
2024-01-14 02:10:10 +00:00
version = "2.45.0";
2019-02-07 01:17:17 +00:00
src = fetchFromGitHub {
owner = "twpayne";
repo = "chezmoi";
rev = "v${version}";
2024-01-14 02:10:10 +00:00
hash = "sha256-h17qbuicwYo2/ygJbhJbLqdcFWgZO/Sz8WQC/Addasc=";
2019-02-07 01:17:17 +00:00
};
2024-01-14 02:10:10 +00:00
vendorHash = "sha256-NqCNP+oG8+x6vYaV9bDfn8+Q1nbxV3L3vs8L4iYgypU=";
2019-02-07 01:17:17 +00:00
doCheck = false;
2021-08-26 06:45:51 +00: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 = [ "." ];
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";
2022-12-26 19:55:25 +00:00
changelog = "https://github.com/twpayne/chezmoi/releases/tag/v${version}";
2019-02-07 01:17:17 +00:00
license = licenses.mit;
maintainers = with maintainers; [ jhillyerd ];
2023-11-27 01:17:53 +00:00
mainProgram = "chezmoi";
2019-02-07 01:17:17 +00:00
};
}