3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/freshfetch/default.nix

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

43 lines
848 B
Nix
Raw Normal View History

2021-06-09 01:05:14 +01:00
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
2021-06-09 01:05:14 +01:00
, AppKit
, CoreFoundation
, DiskArbitration
, Foundation
, IOKit
}:
2021-06-06 23:16:07 +01:00
rustPlatform.buildRustPackage rec {
pname = "freshfetch";
version = "0.2.0";
src = fetchFromGitHub {
owner = "k4rakara";
repo = pname;
rev = "v${version}";
sha256 = "1l9zngr5l12g71j85iyph4jjri3crxc2pi9q0gczrrzvs03439mn";
};
cargoSha256 = "sha256-ra29AwUleHVom6Pi5bL1IPqW7yyLYwRtKFvadMB/380=";
2021-06-06 23:16:07 +01:00
# freshfetch depends on rust nightly features
RUSTC_BOOTSTRAP = 1;
2021-06-09 01:05:14 +01:00
buildInputs = lib.optionals stdenv.isDarwin [
AppKit
CoreFoundation
DiskArbitration
Foundation
IOKit
];
2021-06-06 23:16:07 +01:00
meta = with lib; {
description = "A fresh take on neofetch";
homepage = "https://github.com/k4rakara/freshfetch";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}