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