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

34 lines
769 B
Nix
Raw Normal View History

2021-07-04 02:40:07 +02:00
{ fetchFromGitHub
, rustPlatform
, lib
, stdenv
, fetchpatch
, CoreFoundation
, libiconv
, libresolv
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "onefetch";
2021-07-04 02:40:07 +02:00
version = "2.10.2";
src = fetchFromGitHub {
owner = "o2sh";
repo = pname;
rev = "v${version}";
2021-07-04 02:40:07 +02:00
sha256 = "sha256-lrRp01ZeK9bGn7L7SqAxJAU9qugpHnC06CWChhVPGGQ=";
};
2021-07-04 02:40:07 +02:00
cargoSha256 = "sha256-vNa1OF1x/MCTo9B4DTDZNWyHTsOl7Za3EgjnpsL/gWg=";
2021-02-12 04:25:30 +01:00
buildInputs = lib.optionals stdenv.isDarwin [ CoreFoundation libiconv libresolv Security ];
meta = with lib; {
description = "Git repository summary on your terminal";
homepage = "https://github.com/o2sh/onefetch";
license = licenses.mit;
2021-07-04 02:40:07 +02:00
maintainers = with maintainers; [ Br1ght0ne kloenk SuperSandro2000 ];
};
}