2020-01-04 20:00:00 +01:00
|
|
|
{ fetchFromGitHub, rustPlatform, stdenv, fetchpatch
|
2019-11-25 21:06:35 +01:00
|
|
|
, CoreFoundation, libiconv, libresolv, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "onefetch";
|
2020-11-11 19:44:36 +01:00
|
|
|
version = "2.7.1";
|
2019-11-25 21:06:35 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "o2sh";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-11-11 19:44:36 +01:00
|
|
|
sha256 = "1l4acikxkxvmdqn10ck4w4f100vz7kfrzghz5h4haj7ycrr35j3l";
|
2019-11-25 21:06:35 +01:00
|
|
|
};
|
|
|
|
|
2020-11-11 19:44:36 +01:00
|
|
|
cargoSha256 = "0rmy0jnf5rqd4dqyl6rinxb3n3rzqnixrybs4i27lcas9m753z40";
|
2019-11-25 21:06:35 +01: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;
|
2020-11-04 17:49:46 +01:00
|
|
|
maintainers = with maintainers; [ filalex77 kloenk ];
|
2019-11-25 21:06:35 +01:00
|
|
|
};
|
|
|
|
}
|