diff options
Diffstat (limited to 'pkgs/tools/misc/onefetch/default.nix')
-rw-r--r-- | pkgs/tools/misc/onefetch/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/tools/misc/onefetch/default.nix b/pkgs/tools/misc/onefetch/default.nix new file mode 100644 index 00000000000..be8c4fb9c06 --- /dev/null +++ b/pkgs/tools/misc/onefetch/default.nix @@ -0,0 +1,26 @@ +{ fetchFromGitHub, rustPlatform, stdenv +, CoreFoundation, libiconv, libresolv, Security }: + +rustPlatform.buildRustPackage rec { + pname = "onefetch"; + version = "2.1.0"; + + src = fetchFromGitHub { + owner = "o2sh"; + repo = pname; + rev = "v${version}"; + sha256 = "02mdzpzfcxp9na86b4jcqqjd3id5jslgmnq1jc0vykg58xha51jg"; + }; + + cargoSha256 = "1phv06zf47bv5cmhypivljfiynrblha0kj13c5al9l0hd1xx749h"; + + buildInputs = with stdenv; + lib.optionals isDarwin [ CoreFoundation libiconv libresolv Security ]; + + meta = with stdenv.lib; { + description = "Git repository summary on your terminal"; + homepage = "https://github.com/o2sh/onefetch"; + license = licenses.mit; + maintainers = with maintainers; [ filalex77 ]; + }; +} |