forked from mirrors/nixpkgs
914e0e594c
https://github.com/NixOS/nixpkgs/pull/17254#issuecomment-245295541 * update docs to describe `deps.nix` * include goDeps in nix-shell GOPATH * NixOS 16.09 rel notes about replacing goPackages
26 lines
560 B
Nix
26 lines
560 B
Nix
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
name = "syncthing-${version}";
|
|
version = "0.12.15";
|
|
rev = "v${version}";
|
|
|
|
buildFlags = "--tags noupgrade,release";
|
|
|
|
goPackagePath = "github.com/syncthing/syncthing";
|
|
|
|
src = fetchFromGitHub {
|
|
inherit rev;
|
|
owner = "syncthing";
|
|
repo = "syncthing";
|
|
sha256 = "0g4sj509h45iq6g7b0pl88rbbn7c7s01774yjc6bl376x1xrl6a1";
|
|
};
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
postPatch = ''
|
|
# Mostly a cosmetic change
|
|
sed -i 's,unknown-dev,${version},g' cmd/syncthing/main.go
|
|
'';
|
|
}
|