nixpkgs/pkgs/tools/misc/onefetch/default.nix

27 lines
759 B
Nix
Raw Normal View History

{ fetchFromGitHub, rustPlatform, stdenv, fetchpatch
, CoreFoundation, libiconv, libresolv, Security }:
rustPlatform.buildRustPackage rec {
pname = "onefetch";
2020-11-26 15:33:44 +01:00
version = "2.7.3";
src = fetchFromGitHub {
owner = "o2sh";
repo = pname;
rev = "v${version}";
2020-11-26 15:33:44 +01:00
sha256 = "0c56na9s3g7rdb4cc6ccsnfby2ihf5zrfs3lg9qxiqsfr7mcn4w9";
};
2020-11-26 15:33:44 +01:00
cargoSha256 = "05rrww53g3k2c8mpxvyc067qsgs7w9sxnzdlvmca1idbqa0k9060";
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; [ Br1ght0ne kloenk ];
};
}