1{ lib
2, rustPlatform
3, fetchFromGitHub
4, stdenv
5, darwin
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "funzzy";
10 version = "1.2.0";
11
12 src = fetchFromGitHub {
13 owner = "cristianoliveira";
14 repo = "funzzy";
15 rev = "v${version}";
16 hash = "sha256-YjA/XxVB8gGxyLovxTTatSC/ESBCkgz7Not0qfEPxtw=";
17 };
18
19 cargoHash = "sha256-eq5d6oHWKip9K+9yszLXW+JHtzYzrThXfqoZGMhnSHk=";
20
21 buildInputs = lib.optionals stdenv.isDarwin [
22 darwin.apple_sdk.frameworks.CoreServices
23 ];
24
25 meta = with lib; {
26 description = "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}