commit
0d72e01d16
1 changed files with 8 additions and 2 deletions
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "kopia";
|
pname = "kopia";
|
||||||
version = "0.6.0";
|
version = "0.6.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = pname;
|
owner = pname;
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0jxl2zq3s3czz52ndq7zbj8liij0519745pbcqaj42x851c1p6mj";
|
sha256 = "1wz4sqjcih1m4bjxxdrsggai931q72zz8ikf2rwkp4alz12wr355";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "1npxr7gp59xv38zdx1diilfxij6lb0cmvsnzvjx6n8g0326gf2ii";
|
vendorSha256 = "1npxr7gp59xv38zdx1diilfxij6lb0cmvsnzvjx6n8g0326gf2ii";
|
||||||
|
@ -17,6 +17,12 @@ buildGoModule rec {
|
||||||
|
|
||||||
subPackages = [ "." ];
|
subPackages = [ "." ];
|
||||||
|
|
||||||
|
buildFlagsArray = ''
|
||||||
|
-ldflags=
|
||||||
|
-X github.com/kopia/kopia/repo.BuildVersion=${version}
|
||||||
|
-X github.com/kopia/kopia/repo.BuildInfo=${src.rev}
|
||||||
|
'';
|
||||||
|
|
||||||
postConfigure = ''
|
postConfigure = ''
|
||||||
# make 'vendor' writable
|
# make 'vendor' writable
|
||||||
cp -L -r vendor tmp-vendor
|
cp -L -r vendor tmp-vendor
|
||||||
|
|
Loading…
Reference in a new issue