tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
syncthing: 0.14.32 -> 0.14.36
Peter Hoeg
8 years ago
806af3d2
3c136e5f
+6
-5
1 changed file
expand all
collapse all
unified
split
pkgs
applications
networking
syncthing
default.nix
+6
-5
pkgs/applications/networking/syncthing/default.nix
···
1
{ stdenv, lib, fetchFromGitHub, go, procps, removeReferencesTo }:
2
3
stdenv.mkDerivation rec {
4
-
version = "0.14.32";
5
name = "syncthing-${version}";
6
7
src = fetchFromGitHub {
8
owner = "syncthing";
9
repo = "syncthing";
10
rev = "v${version}";
11
-
sha256 = "1agjr3m4gnywbp40idi0pwy25cp836sdcar7r6r9hwcqxyyzz545";
12
};
13
14
buildInputs = [ go removeReferencesTo ];
···
21
# Syncthing's build.go script expects this working directory
22
cd src/github.com/syncthing/syncthing
23
24
-
go run build.go -no-upgrade -version v${version} install all
25
'';
26
27
installPhase = ''
28
-
mkdir -p $out/bin $out/lib/systemd/{system,user}
0
0
29
30
-
cp bin/* $out/bin
31
'' + lib.optionalString (stdenv.isLinux) ''
32
substitute etc/linux-systemd/system/syncthing-resume.service \
33
$out/lib/systemd/system/syncthing-resume.service \
···
1
{ stdenv, lib, fetchFromGitHub, go, procps, removeReferencesTo }:
2
3
stdenv.mkDerivation rec {
4
+
version = "0.14.36";
5
name = "syncthing-${version}";
6
7
src = fetchFromGitHub {
8
owner = "syncthing";
9
repo = "syncthing";
10
rev = "v${version}";
11
+
sha256 = "1l4s74qlabwfkpi9lmm588ym0myavbs06a5gpp9nihzrsal18727";
12
};
13
14
buildInputs = [ go removeReferencesTo ];
···
21
# Syncthing's build.go script expects this working directory
22
cd src/github.com/syncthing/syncthing
23
24
+
go run build.go -no-upgrade -version v${version} build
25
'';
26
27
installPhase = ''
28
+
mkdir -p $out/lib/systemd/{system,user}
29
+
30
+
install -Dm755 syncthing $out/bin/syncthing
31
0
32
'' + lib.optionalString (stdenv.isLinux) ''
33
substitute etc/linux-systemd/system/syncthing-resume.service \
34
$out/lib/systemd/system/syncthing-resume.service \