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

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

44 lines
976 B
Nix
Raw Normal View History

2023-01-10 15:14:22 +00:00
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, installShellFiles
, libiconv
, Foundation
}:
2021-04-17 18:50:49 +01:00
rustPlatform.buildRustPackage rec {
pname = "macchina";
2023-01-10 14:58:40 +00:00
version = "6.1.7";
2021-04-17 18:50:49 +01:00
src = fetchFromGitHub {
owner = "Macchina-CLI";
repo = pname;
2023-01-13 01:20:55 +00:00
rev = "v${version}";
2023-01-10 15:14:22 +00:00
hash = "sha256-zbQOmlFWpoQwf4rlDLn1V0vj1c66pVWrMROGANRDl9s=";
2021-04-17 18:50:49 +01:00
};
2023-01-10 14:58:40 +00:00
cargoHash = "sha256-BYUGtaMG/fvQHYJgeSQcW+ZJOrm3N9g6m0c5TX9psJU=";
2021-04-17 18:50:49 +01:00
2023-01-10 15:14:22 +00:00
nativeBuildInputs = [
installShellFiles
];
buildInputs = lib.optionals stdenv.isDarwin [
libiconv
Foundation
];
2021-04-17 18:50:49 +01:00
postInstall = ''
installShellCompletion target/completions/*.{bash,fish}
'';
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 ];
};
}