1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/networking/syncthing/inotify.nix

38 lines
1.2 KiB
Nix
Raw Normal View History

2016-07-27 15:27:14 +01:00
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "syncthing-inotify-${version}";
2017-06-16 01:01:27 +01:00
version = "0.8.6";
2016-07-27 15:27:14 +01:00
goPackagePath = "github.com/syncthing/syncthing-inotify";
src = fetchFromGitHub {
2017-02-11 07:21:03 +00:00
owner = "syncthing";
repo = "syncthing-inotify";
rev = "v${version}";
2017-06-16 01:01:27 +01:00
sha256 = "0z1zpb7av4q5nj2d4yda9jcbjdz4yj3823c29y73yf0gfp26lppl";
2016-07-27 15:27:14 +01:00
};
goDeps = ./inotify-deps.nix;
2016-07-27 15:27:14 +01:00
postInstall = ''
mkdir -p $bin/lib/systemd/{system,user}
substitute $src/etc/linux-systemd/system/syncthing-inotify@.service \
$bin/lib/systemd/system/syncthing-inotify@.service \
--replace /usr/bin/syncthing-inotify $bin/bin/syncthing-inotify
substitute $src/etc/linux-systemd/user/syncthing-inotify.service \
$bin/lib/systemd/user/syncthing-inotify.service \
--replace /usr/bin/syncthing-inotify $bin/bin/syncthing-inotify
'';
meta = with stdenv.lib; {
2016-07-27 15:27:14 +01:00
homepage = https://github.com/syncthing/syncthing-inotify;
description = "File watcher intended for use with Syncthing";
license = licenses.mpl20;
maintainers = with maintainers; [ joko peterhoeg ];
platforms = platforms.unix;
2016-07-27 15:27:14 +01:00
};
}