2016-06-06 12:26:56 +02:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 10:02:21 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "syncthing-${version}";
|
|
|
|
version = "0.12.15";
|
|
|
|
rev = "v${version}";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/syncthing/syncthing";
|
|
|
|
|
2016-06-06 12:26:56 +02:00
|
|
|
src = fetchFromGitHub {
|
2016-06-05 10:02:21 +02:00
|
|
|
inherit rev;
|
2016-06-06 12:26:56 +02:00
|
|
|
owner = "syncthing";
|
|
|
|
repo = "syncthing";
|
|
|
|
sha256 = "0g4sj509h45iq6g7b0pl88rbbn7c7s01774yjc6bl376x1xrl6a1";
|
2016-06-05 10:02:21 +02:00
|
|
|
};
|
|
|
|
|
2016-09-10 12:04:13 +02:00
|
|
|
goDeps = ./deps.nix;
|
2016-06-05 10:02:21 +02:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Mostly a cosmetic change
|
|
|
|
sed -i 's,unknown-dev,${version},g' cmd/syncthing/main.go
|
|
|
|
'';
|
2017-09-10 09:03:08 +02:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export buildFlagsArray+=("-tags" "noupgrade release")
|
|
|
|
'';
|
2016-06-05 10:02:21 +02:00
|
|
|
}
|