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