nixpkgs/pkgs/applications/networking/syncthing/default.nix

33 lines
907 B
Nix
Raw Normal View History

2015-02-05 12:12:10 +00:00
{ lib, fetchgit, goPackages }:
2015-02-05 12:12:10 +00:00
with goPackages;
buildGoPackage rec {
name = "syncthing-${version}";
2015-05-31 11:42:59 +01:00
version = "0.11.7";
2015-02-05 12:12:10 +00:00
goPackagePath = "github.com/syncthing/syncthing";
src = fetchgit {
2015-01-06 08:24:48 +00:00
url = "git://github.com/syncthing/syncthing.git";
rev = "refs/tags/v${version}";
2015-05-31 11:42:59 +01:00
sha256 = "7d928a255c61c7b89d460cc70c79bd8e85bef3e919c157f59d5709fef4153c8d";
};
2015-02-05 12:12:10 +00:00
subPackages = [ "cmd/syncthing" ];
2015-02-05 12:12:10 +00:00
buildFlagsArray = "-ldflags=-w -X main.Version v${version}";
2015-02-05 12:12:10 +00:00
preBuild = "export GOPATH=$GOPATH:$NIX_BUILD_TOP/go/src/${goPackagePath}/Godeps/_workspace";
2015-02-05 12:12:10 +00:00
doCheck = true;
dontInstallSrc = true;
meta = {
homepage = http://syncthing.net/;
description = "Replaces Dropbox and BitTorrent Sync with something open, trustworthy and decentralized";
license = lib.licenses.mit;
2015-02-05 12:12:10 +00:00
maintainers = with lib.maintainers; [ matejc ];
platforms = with lib.platforms; unix;
};
}