mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
syncthing: 0.14.32 -> 0.14.36
This commit is contained in:
parent
3c136e5fa4
commit
806af3d2c8
@ -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 ];
|
||||
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user