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