1 { lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 hash = "sha256-1Br/mO7hisTFxiPJs5vOC+idENYMqfzJEmPBXOFGc58=";
14 cargoHash = "sha256-/gYL32kUA4gKTGogMrOghQ3XYFjw3GsDhzynUC/OyXY=";
16 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
17 darwin.apple_sdk.frameworks.AppKit
18 darwin.apple_sdk.frameworks.DisplayServices
23 description = "Rewrite of the pfetch system information tool in Rust";
24 homepage = "https://github.com/Gobidev/pfetch-rs";
25 changelog = "https://github.com/Gobidev/pfetch-rs/releases/tag/v${version}";
26 license = licenses.mit;
27 maintainers = with maintainers; [ gobidev ];
28 mainProgram = "pfetch";