2021-06-09 00:05:14 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
2021-10-08 01:27:23 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenv
|
2021-06-09 00:05:14 +00:00
|
|
|
, AppKit
|
|
|
|
, CoreFoundation
|
|
|
|
, DiskArbitration
|
|
|
|
, Foundation
|
|
|
|
, IOKit
|
|
|
|
}:
|
2021-06-06 22:16:07 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "freshfetch";
|
|
|
|
version = "0.2.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "k4rakara";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1l9zngr5l12g71j85iyph4jjri3crxc2pi9q0gczrrzvs03439mn";
|
|
|
|
};
|
|
|
|
|
2023-03-25 23:16:46 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"clml_rs-0.3.0" = "sha256-KTAm0TCNHGeuOmqmLcZfjl2mQmWcCxWaTPOzA38qbUM=";
|
|
|
|
};
|
|
|
|
};
|
2021-06-06 22:16:07 +00:00
|
|
|
|
|
|
|
# freshfetch depends on rust nightly features
|
|
|
|
RUSTC_BOOTSTRAP = 1;
|
|
|
|
|
2021-06-09 00:05:14 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
AppKit
|
|
|
|
CoreFoundation
|
|
|
|
DiskArbitration
|
|
|
|
Foundation
|
|
|
|
IOKit
|
|
|
|
];
|
|
|
|
|
2021-06-06 22:16:07 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A fresh take on neofetch";
|
|
|
|
homepage = "https://github.com/k4rakara/freshfetch";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "freshfetch";
|
2021-06-06 22:16:07 +00:00
|
|
|
};
|
|
|
|
}
|