depot/third_party/nixpkgs/pkgs/tools/misc/pfetch-rs/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

29 lines
832 B
Nix

{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
rustPlatform.buildRustPackage rec {
pname = "pfetch-rs";
version = "2.7.0";
src = fetchFromGitHub {
owner = "Gobidev";
repo = pname;
rev = "v${version}";
hash = "sha256-KNd6EKYxuSNvWXNERZ+ZGq3HzRbE75LZPcAlfB4Aoyw=";
};
cargoHash = "sha256-Zxtf1OPsafm/BexDsHKb4Ei/ca3Nxz7c/U/A0AnAAI4=";
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 ];
};
}