1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "freshfetch";
9 version = "0.2.0";
10
11 src = fetchFromGitHub {
12 owner = "k4rakara";
13 repo = "freshfetch";
14 rev = "v${version}";
15 sha256 = "1l9zngr5l12g71j85iyph4jjri3crxc2pi9q0gczrrzvs03439mn";
16 };
17
18 cargoHash = "sha256-LKltHVig33zUSWoRgCb1BgeKiJsDnlYEuPfQfrnhafI=";
19
20 # freshfetch depends on rust nightly features
21 RUSTC_BOOTSTRAP = 1;
22
23 meta = with lib; {
24 description = "Fresh take on neofetch";
25 homepage = "https://github.com/k4rakara/freshfetch";
26 license = licenses.mit;
27 maintainers = with maintainers; [ figsoda ];
28 mainProgram = "freshfetch";
29 };
30}