python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / freshfetch / default.nix
blobe73fec1a5942911f09875974a00215d0a4ffd11d
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   cargoSha256 = "sha256-ra29AwUleHVom6Pi5bL1IPqW7yyLYwRtKFvadMB/380=";
25   # freshfetch depends on rust nightly features
26   RUSTC_BOOTSTRAP = 1;
28   buildInputs = lib.optionals stdenv.isDarwin [
29     AppKit
30     CoreFoundation
31     DiskArbitration
32     Foundation
33     IOKit
34   ];
36   meta = with lib; {
37     description = "A fresh take on neofetch";
38     homepage = "https://github.com/k4rakara/freshfetch";
39     license = licenses.mit;
40     maintainers = with maintainers; [ figsoda ];
41   };