1{ lib
2, rustPlatform
3, fetchFromGitHub
4, stdenv
5, darwin
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "funzzy";
10 version = "1.1.1";
11
12 src = fetchFromGitHub {
13 owner = "cristianoliveira";
14 repo = "funzzy";
15 rev = "v${version}";
16 hash = "sha256-sgfMxSbOBn2Ps6hqrFDm3x9QOnMvtMgO7gAt6kk0cIs=";
17 };
18
19 cargoHash = "sha256-If8iBvwiaH1jK8z06ORY/lx+7HAT4InxbjoLe289kws=";
20
21 buildInputs = lib.optionals stdenv.isDarwin [
22 darwin.apple_sdk.frameworks.CoreServices
23 ];
24
25 meta = with lib; {
26 description = "A lightweight watcher";
27 homepage = "https://github.com/cristianoliveira/funzzy";
28 changelog = "https://github.com/cristianoliveira/funzzy/releases/tag/${src.rev}";
29 license = licenses.mit;
30 maintainers = with maintainers; [ figsoda ];
31 };
32}