2020-04-24 23:36:52 +00:00
|
|
|
{ fetchFromGitHub, rustPlatform, stdenv, fetchpatch
|
|
|
|
, CoreFoundation, libiconv, libresolv, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "onefetch";
|
2020-10-19 23:25:03 +00:00
|
|
|
version = "2.5.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "o2sh";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-10-19 23:25:03 +00:00
|
|
|
sha256 = "sha256-F1NbzcMoct0mjWKY2itz4cBqVToY7HpoaRzk3l683fY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-10-19 23:25:03 +00:00
|
|
|
cargoSha256 = "sha256-eBY+34VEPEAv5bqerxR3i7cJrVb1GtvmWyrM7uuef2E=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|