nixpkgs/pkgs/applications/networking/syncthing/default.nix
2015-07-14 22:46:54 +02:00

33 lines
915 B
Nix

{ lib, fetchgit, goPackages }:
with goPackages;
buildGoPackage rec {
name = "syncthing-${version}";
version = "0.11.15";
goPackagePath = "github.com/syncthing/syncthing";
src = fetchgit {
url = "git://github.com/syncthing/syncthing.git";
rev = "refs/tags/v${version}";
sha256 = "8afd0a0999c7d7d285f361589330421c00012da86ce91623c5ad6b96d8fb9695";
};
subPackages = [ "cmd/syncthing" ];
buildFlagsArray = "-ldflags=-w -X main.Version v${version}";
preBuild = "export GOPATH=$GOPATH:$NIX_BUILD_TOP/go/src/${goPackagePath}/Godeps/_workspace";
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;
maintainers = with lib.maintainers; [ matejc theuni ];
platforms = with lib.platforms; unix;
};
}