insync: 3.9.3.60019 -> 3.9.4.60020 (#363380)
[NixPkgs.git] / pkgs / tools / misc / freshfetch / default.nix
bloba8e327120484cc58ed9919c50111ba287bec04ad
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   stdenv,
6   AppKit,
7   CoreFoundation,
8   DiskArbitration,
9   Foundation,
10   IOKit,
13 rustPlatform.buildRustPackage rec {
14   pname = "freshfetch";
15   version = "0.2.0";
17   src = fetchFromGitHub {
18     owner = "k4rakara";
19     repo = pname;
20     rev = "v${version}";
21     sha256 = "1l9zngr5l12g71j85iyph4jjri3crxc2pi9q0gczrrzvs03439mn";
22   };
24   cargoLock = {
25     lockFile = ./Cargo.lock;
26     outputHashes = {
27       "clml_rs-0.3.0" = "sha256-KTAm0TCNHGeuOmqmLcZfjl2mQmWcCxWaTPOzA38qbUM=";
28     };
29   };
31   # freshfetch depends on rust nightly features
32   RUSTC_BOOTSTRAP = 1;
34   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
35     AppKit
36     CoreFoundation
37     DiskArbitration
38     Foundation
39     IOKit
40   ];
42   meta = with lib; {
43     description = "Fresh take on neofetch";
44     homepage = "https://github.com/k4rakara/freshfetch";
45     license = licenses.mit;
46     maintainers = with maintainers; [ figsoda ];
47     mainProgram = "freshfetch";
48   };