nixpkgs/pkgs/tools/misc/macchina/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1,006 B
Nix
Raw Normal View History

2023-01-10 16:14:22 +01:00
{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
, stdenv
, darwin
2023-01-10 16:14:22 +01:00
}:
2021-04-17 19:50:49 +02:00
rustPlatform.buildRustPackage rec {
pname = "macchina";
2023-01-15 09:18:06 +01:00
version = "6.1.8";
2021-04-17 19:50:49 +02:00
src = fetchFromGitHub {
owner = "Macchina-CLI";
repo = pname;
2023-01-13 02:20:55 +01:00
rev = "v${version}";
2023-01-15 09:18:06 +01:00
hash = "sha256-MntHq5nphfjbO0Rx7v6WjsnabSMH5Ke3aR9/embG/rk=";
2021-04-17 19:50:49 +02:00
};
2023-01-15 09:18:06 +01:00
cargoHash = "sha256-w8WIpT8rUe7olB5kdpDyrId6D698AhcqzsfpOlutaHQ=";
2021-04-17 19:50:49 +02:00
2023-01-10 16:14:22 +01:00
nativeBuildInputs = [
installShellFiles
];
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.AppKit
darwin.apple_sdk.frameworks.DisplayServices
2023-01-10 16:14:22 +01:00
];
2021-04-17 19:50:49 +02:00
postInstall = ''
installManPage doc/macchina.{1,7}
2021-04-17 19:50:49 +02:00
'';
meta = with lib; {
description = "A fast, minimal and customizable system information fetcher";
homepage = "https://github.com/Macchina-CLI/macchina";
changelog = "https://github.com/Macchina-CLI/macchina/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ _414owen figsoda ];
2021-04-17 19:50:49 +02:00
};
}