@@ -0,0 +1,26 @@
1+{ fetchFromGitHub, rustPlatform, stdenv
2+, CoreFoundation, libiconv, libresolv, Security }:
3+
4+rustPlatform.buildRustPackage rec {
5+ pname = "onefetch";
6+ version = "2.1.0";
7+
8+ src = fetchFromGitHub {
9+ owner = "o2sh";
10+ repo = pname;
11+ rev = "v${version}";
12+ sha256 = "02mdzpzfcxp9na86b4jcqqjd3id5jslgmnq1jc0vykg58xha51jg";
13+ };
14+
15+ cargoSha256 = "1phv06zf47bv5cmhypivljfiynrblha0kj13c5al9l0hd1xx749h";
16+
17+ buildInputs = with stdenv;
18+ lib.optionals isDarwin [ CoreFoundation libiconv libresolv Security ];
19+
20+ meta = with stdenv.lib; {
21+ description = "Git repository summary on your terminal";
22+ homepage = "https://github.com/o2sh/onefetch";
23+ license = licenses.mit;
24+ maintainers = with maintainers; [ filalex77 ];
25+ };
26+}