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