depot/third_party/nixpkgs/pkgs/tools/misc/freshfetch/default.nix
Default email 93df2b837e Project import generated by Copybara.
GitOrigin-RevId: 18d4025a8ee2f656d897505ccd0ba61a5b89bbea
2021-10-08 17:17:17 +02:00

42 lines
848 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";
};
cargoSha256 = "sha256-ra29AwUleHVom6Pi5bL1IPqW7yyLYwRtKFvadMB/380=";
# 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 ];
};
}