Skip to content

Commit

Permalink
syncthing: 0.14.32 -> 0.14.36
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Aug 14, 2017
1 parent 3c136e5 commit 806af3d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pkgs/applications/networking/syncthing/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{ stdenv, lib, fetchFromGitHub, go, procps, removeReferencesTo }:

stdenv.mkDerivation rec {
version = "0.14.32";
version = "0.14.36";
name = "syncthing-${version}";

src = fetchFromGitHub {
owner = "syncthing";
repo = "syncthing";
rev = "v${version}";
sha256 = "1agjr3m4gnywbp40idi0pwy25cp836sdcar7r6r9hwcqxyyzz545";
sha256 = "1l4s74qlabwfkpi9lmm588ym0myavbs06a5gpp9nihzrsal18727";
};

buildInputs = [ go removeReferencesTo ];
Expand All @@ -21,13 +21,14 @@ stdenv.mkDerivation rec {
# Syncthing's build.go script expects this working directory
cd src/github.com/syncthing/syncthing
go run build.go -no-upgrade -version v${version} install all
go run build.go -no-upgrade -version v${version} build
'';

installPhase = ''
mkdir -p $out/bin $out/lib/systemd/{system,user}
mkdir -p $out/lib/systemd/{system,user}
install -Dm755 syncthing $out/bin/syncthing
cp bin/* $out/bin
'' + lib.optionalString (stdenv.isLinux) ''
substitute etc/linux-systemd/system/syncthing-resume.service \
$out/lib/systemd/system/syncthing-resume.service \
Expand Down

0 comments on commit 806af3d

Please sign in to comment.