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

30 lines
722 B
Nix
Raw Normal View History

2019-02-07 01:17:17 +00:00
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "chezmoi";
2019-07-05 23:52:08 +00:00
version = "1.5.5";
2019-02-07 01:17:17 +00:00
goPackagePath = "github.com/twpayne/chezmoi";
src = fetchFromGitHub {
owner = "twpayne";
repo = "chezmoi";
rev = "v${version}";
2019-07-05 23:52:08 +00:00
sha256 = "18kc3b2ncjzxivycx3mhqw9kbqp0sxmlgc2ddvhgj2vpvlkayzkh";
2019-02-07 01:17:17 +00:00
};
goDeps = ./deps.nix;
buildFlagsArray = [
2019-07-05 23:52:08 +00:00
"-ldflags=-s -w -X ${goPackagePath}/cmd.VersionStr=${version}"
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;
};
}