2015-02-05 12:12:10 +00:00
|
|
|
{ lib, fetchgit, goPackages }:
|
2014-04-03 17:54:10 +01:00
|
|
|
|
2015-02-05 12:12:10 +00:00
|
|
|
with goPackages;
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2014-04-03 17:54:10 +01:00
|
|
|
name = "syncthing-${version}";
|
2015-06-17 21:48:29 +01:00
|
|
|
version = "0.11.9";
|
2015-02-05 12:12:10 +00:00
|
|
|
goPackagePath = "github.com/syncthing/syncthing";
|
2014-04-03 17:54:10 +01:00
|
|
|
src = fetchgit {
|
2015-01-06 08:24:48 +00:00
|
|
|
url = "git://github.com/syncthing/syncthing.git";
|
2014-04-03 17:54:10 +01:00
|
|
|
rev = "refs/tags/v${version}";
|
2015-06-17 21:48:29 +01:00
|
|
|
sha256 = "353528e152bbfd5075c4f85a54bce507ab3d8855f702a1399a48196bc19d226b";
|
2014-04-03 17:54:10 +01:00
|
|
|
};
|
|
|
|
|
2015-02-05 12:12:10 +00:00
|
|
|
subPackages = [ "cmd/syncthing" ];
|
2014-04-03 17:54:10 +01:00
|
|
|
|
2015-02-05 12:12:10 +00:00
|
|
|
buildFlagsArray = "-ldflags=-w -X main.Version v${version}";
|
2014-04-03 17:54:10 +01:00
|
|
|
|
2015-02-05 12:12:10 +00:00
|
|
|
preBuild = "export GOPATH=$GOPATH:$NIX_BUILD_TOP/go/src/${goPackagePath}/Godeps/_workspace";
|
2014-04-03 17:54:10 +01:00
|
|
|
|
2015-02-05 12:12:10 +00:00
|
|
|
doCheck = true;
|
2014-04-03 17:54:10 +01:00
|
|
|
|
2015-02-05 17:07:28 +00:00
|
|
|
dontInstallSrc = true;
|
|
|
|
|
2014-04-03 17:54:10 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://syncthing.net/;
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Replaces Dropbox and BitTorrent Sync with something open, trustworthy and decentralized";
|
2015-05-28 18:20:29 +01:00
|
|
|
license = lib.licenses.mit;
|
2015-06-10 12:33:59 +01:00
|
|
|
maintainers = with lib.maintainers; [ matejc theuni ];
|
2015-03-30 21:07:02 +01:00
|
|
|
platforms = with lib.platforms; unix;
|
2014-04-03 17:54:10 +01:00
|
|
|
};
|
|
|
|
}
|