depot/third_party/nixpkgs/pkgs/tools/misc/pfetch-rs/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

30 lines
860 B
Nix

{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
rustPlatform.buildRustPackage rec {
pname = "pfetch-rs";
version = "2.8.1";
src = fetchFromGitHub {
owner = "Gobidev";
repo = pname;
rev = "v${version}";
hash = "sha256-/eVtI+Uvb0r1af20MlQU8sDSNf6YyIBvFKSVp47JMfQ=";
};
cargoHash = "sha256-eEBtrMF6dl5TzOZHnqjX4Yz2SfknGM2bzJcQWQIctPc=";
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.AppKit
darwin.apple_sdk.frameworks.DisplayServices
];
meta = with lib; {
description = "A rewrite of the pfetch system information tool in Rust";
homepage = "https://github.com/Gobidev/pfetch-rs";
changelog = "https://github.com/Gobidev/pfetch-rs/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ gobidev ];
mainProgram = "pfetch";
};
}