mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
28 lines
630 B
Nix
28 lines
630 B
Nix
|
# This file was generated by go2nix.
|
||
|
{ stdenv, lib, goPackages, fetchgit, fetchhg, fetchbzr, fetchsvn }:
|
||
|
|
||
|
with goPackages;
|
||
|
|
||
|
buildGoPackage rec {
|
||
|
name = "syncthing-${version}";
|
||
|
version = "0.12.15";
|
||
|
rev = "v${version}";
|
||
|
|
||
|
buildFlags = "--tags noupgrade,release";
|
||
|
|
||
|
goPackagePath = "github.com/syncthing/syncthing";
|
||
|
|
||
|
src = fetchgit {
|
||
|
inherit rev;
|
||
|
url = "https://github.com/syncthing/syncthing";
|
||
|
sha256 = "108w7gvm3nbbsgp3h5p84fj4ba0siaz932i7yyryly486gzvpm43";
|
||
|
};
|
||
|
|
||
|
goDeps = ./deps.json;
|
||
|
|
||
|
postPatch = ''
|
||
|
# Mostly a cosmetic change
|
||
|
sed -i 's,unknown-dev,${version},g' cmd/syncthing/main.go
|
||
|
'';
|
||
|
}
|