2023-07-15 17:15:38 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "pfetch-rs";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2.11.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Gobidev";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-1Br/mO7hisTFxiPJs5vOC+idENYMqfzJEmPBXOFGc58=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-/gYL32kUA4gKTGogMrOghQ3XYFjw3GsDhzynUC/OyXY=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
2023-07-15 17:15:38 +00:00
|
|
|
darwin.apple_sdk.frameworks.AppKit
|
|
|
|
darwin.apple_sdk.frameworks.DisplayServices
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Rewrite of the pfetch system information tool in Rust";
|
2023-07-15 17:15:38 +00:00
|
|
|
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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "pfetch";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|