git.iko.soy/typeable/nixpkgs
on master help sign in
syncthing: 0.14.32 -> 0.14.36
806af3dPeter Hoeg
pkgs/applications/networking/syncthing/default.nix+6−5
@@ -1,14 +1,14 @@
1{ stdenv, lib, fetchFromGitHub, go, procps, removeReferencesTo }:
1{ stdenv, lib, fetchFromGitHub, go, procps, removeReferencesTo }:
2
2
3stdenv.mkDerivation rec {
3stdenv.mkDerivation rec {
4− version = "0.14.32";
4+ version = "0.14.36";
5 name = "syncthing-${version}";
5 name = "syncthing-${version}";
6
6
7 src = fetchFromGitHub {
7 src = fetchFromGitHub {
8 owner = "syncthing";
8 owner = "syncthing";
9 repo = "syncthing";
9 repo = "syncthing";
10 rev = "v${version}";
10 rev = "v${version}";
11− sha256 = "1agjr3m4gnywbp40idi0pwy25cp836sdcar7r6r9hwcqxyyzz545";
11+ sha256 = "1l4s74qlabwfkpi9lmm588ym0myavbs06a5gpp9nihzrsal18727";
12 };
12 };
13
13
14 buildInputs = [ go removeReferencesTo ];
14 buildInputs = [ go removeReferencesTo ];
@@ -21,13 +21,14 @@ stdenv.mkDerivation rec {
21 # Syncthing's build.go script expects this working directory
21 # Syncthing's build.go script expects this working directory
22 cd src/github.com/syncthing/syncthing
22 cd src/github.com/syncthing/syncthing
23
23
24− go run build.go -no-upgrade -version v${version} install all
24+ go run build.go -no-upgrade -version v${version} build
25 '';
25 '';
26
26
27 installPhase = ''
27 installPhase = ''
28− mkdir -p $out/bin $out/lib/systemd/{system,user}
28+ mkdir -p $out/lib/systemd/{system,user}
29+
30+ install -Dm755 syncthing $out/bin/syncthing
29
31
30− cp bin/* $out/bin
31 '' + lib.optionalString (stdenv.isLinux) ''
32 '' + lib.optionalString (stdenv.isLinux) ''
32 substitute etc/linux-systemd/system/syncthing-resume.service \
33 substitute etc/linux-systemd/system/syncthing-resume.service \
33 $out/lib/systemd/system/syncthing-resume.service \
34 $out/lib/systemd/system/syncthing-resume.service \