504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
48 lines
966 B
Nix
48 lines
966 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, stdenv
|
|
, AppKit
|
|
, CoreFoundation
|
|
, DiskArbitration
|
|
, Foundation
|
|
, IOKit
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "freshfetch";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "k4rakara";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1l9zngr5l12g71j85iyph4jjri3crxc2pi9q0gczrrzvs03439mn";
|
|
};
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"clml_rs-0.3.0" = "sha256-KTAm0TCNHGeuOmqmLcZfjl2mQmWcCxWaTPOzA38qbUM=";
|
|
};
|
|
};
|
|
|
|
# freshfetch depends on rust nightly features
|
|
RUSTC_BOOTSTRAP = 1;
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
AppKit
|
|
CoreFoundation
|
|
DiskArbitration
|
|
Foundation
|
|
IOKit
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A fresh take on neofetch";
|
|
homepage = "https://github.com/k4rakara/freshfetch";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
mainProgram = "freshfetch";
|
|
};
|
|
}
|