2022-04-09 14:56:22 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2018-02-16 20:12:08 +00:00
|
|
|
|
2022-04-09 14:56:22 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "reflex";
|
2022-04-09 14:56:22 +00:00
|
|
|
version = "0.3.1";
|
2018-02-16 20:12:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cespare";
|
|
|
|
repo = "reflex";
|
|
|
|
rev = "v${version}";
|
2022-04-09 14:56:22 +00:00
|
|
|
sha256 = "sha256-/2qVm2xpSFVspA16rkiIw/qckxzXQp/1EGOl0f9KljY=";
|
2018-02-16 20:12:08 +00:00
|
|
|
};
|
|
|
|
|
2022-04-09 14:56:22 +00:00
|
|
|
vendorSha256 = "sha256-JCtVYDHbhH2i7tGNK1jvgHCjU6gMMkNhQ2ZnlTeqtmA=";
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2018-02-16 20:12:08 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A small tool to watch a directory and rerun a command when certain files change";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/cespare/reflex";
|
2018-02-16 20:12:08 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ nicknovitski ];
|
|
|
|
};
|
|
|
|
}
|