1{ lib, fetchFromGitHub, buildGoModule }:
2
3buildGoModule rec {
4 pname = "reflex";
5 version = "0.3.1";
6
7 src = fetchFromGitHub {
8 owner = "cespare";
9 repo = "reflex";
10 rev = "v${version}";
11 sha256 = "sha256-/2qVm2xpSFVspA16rkiIw/qckxzXQp/1EGOl0f9KljY=";
12 };
13
14 vendorSha256 = "sha256-JCtVYDHbhH2i7tGNK1jvgHCjU6gMMkNhQ2ZnlTeqtmA=";
15
16 ldflags = [ "-s" "-w" ];
17
18 meta = with lib; {
19 description = "A small tool to watch a directory and rerun a command when certain files change";
20 homepage = "https://github.com/cespare/reflex";
21 license = licenses.mit;
22 platforms = platforms.unix;
23 maintainers = with maintainers; [ nicknovitski ];
24 };
25}