libfmvoice: 0-unstable-2024-11-08 -> 0-unstable-2024-12-11 (#364919)
[NixPkgs.git] / pkgs / tools / misc / octofetch / default.nix
blobcfee7e5caef56386560b7d63f692b8c3aa51512a
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   openssl,
6   pkg-config,
7   rustPlatform,
8   Security,
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "octofetch";
13   version = "0.3.3";
15   src = fetchFromGitHub {
16     owner = "azur1s";
17     repo = pname;
18     rev = version;
19     sha256 = "sha256-/AXE1e02NfxQzJZd0QX6gJDjmFFmuUTOndulZElgIMI=";
20   };
22   cargoHash = "sha256-iuhJYibyQ7hdeXzqCW2PLq7FiKnZp2VHyKT4qO/6vrU=";
24   nativeBuildInputs = [ pkg-config ];
26   buildInputs =
27     lib.optionals stdenv.hostPlatform.isLinux [ openssl ]
28     ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
30   meta = with lib; {
31     homepage = "https://github.com/azur1s/octofetch";
32     description = "Github user information on terminal";
33     license = licenses.mit;
34     maintainers = [ ];
35     mainProgram = "octofetch";
36   };