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