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

30 lines
722 B
Nix
Raw Normal View History

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