1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "frece";
9 version = "1.0.6";
10
11 src = fetchFromGitHub {
12 owner = "YodaEmbedding";
13 repo = "frece";
14 rev = "v${version}";
15 sha256 = "sha256-CAiIqT5KuzrqbV9FVK3nZUe8MDs2KDdsKplJMI7rN9w=";
16 };
17
18 cargoHash = "sha256-4d1bgkwzC0jFD21Yb8mbnLXTqXTRsJPsMPidSRY4GVw=";
19
20 meta = with lib; {
21 description = "Maintain a database sorted by frecency (frequency + recency)";
22 mainProgram = "frece";
23 homepage = "https://github.com/YodaEmbedding/frece";
24 license = licenses.mit;
25 platforms = platforms.linux;
26 maintainers = [ ];
27 };
28}