3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/onefetch/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
924 B
Nix
Raw Normal View History

2021-07-04 01:40:07 +01:00
{ fetchFromGitHub
, rustPlatform
, lib
, stdenv
2022-01-24 03:09:15 +00:00
, pkg-config
, zstd
2021-07-04 01:40:07 +01:00
, CoreFoundation
, libiconv
, libresolv
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "onefetch";
2022-03-30 00:23:45 +01:00
version = "2.12.0";
src = fetchFromGitHub {
owner = "o2sh";
repo = pname;
rev = "v${version}";
2022-03-30 00:23:45 +01:00
sha256 = "sha256-nSvqAXzA/4CSnOMCZri2ks58bW+9v+SoyIIzb+K5S88=";
};
2022-03-20 03:11:30 +00:00
cargoPatches = [
# enable pkg-config feature of zstd
./zstd-pkg-config.patch
];
2022-03-30 00:23:45 +01:00
cargoSha256 = "sha256-uSef6x5QkXKwajglbwyoIsUFGbz0zntVM1ko0FZqnck=";
2022-01-24 03:09:15 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ zstd ]
++ 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 01:40:07 +01:00
maintainers = with maintainers; [ Br1ght0ne kloenk SuperSandro2000 ];
};
}