nixpkgs/pkgs/tools/misc/octofetch/default.nix

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

36 lines
794 B
Nix
Raw Normal View History

{ lib
2021-11-11 04:07:44 +00:00
, stdenv
, fetchFromGitHub
, openssl
2022-06-03 00:50:03 +00:00
, pkg-config
, rustPlatform
2021-11-11 04:07:44 +00:00
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "octofetch";
2021-11-10 06:56:40 +00:00
version = "0.3.3";
src = fetchFromGitHub {
owner = "azur1s";
repo = pname;
rev = version;
2021-11-10 06:56:40 +00:00
sha256 = "sha256-/AXE1e02NfxQzJZd0QX6gJDjmFFmuUTOndulZElgIMI=";
};
2022-06-03 00:50:03 +00:00
cargoSha256 = "sha256-iuhJYibyQ7hdeXzqCW2PLq7FiKnZp2VHyKT4qO/6vrU=";
nativeBuildInputs = [ pkg-config ];
2022-06-03 00:50:03 +00:00
2021-11-11 04:07:44 +00:00
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
++ lib.optionals stdenv.isDarwin [ Security ];
meta = with lib; {
homepage = "https://github.com/azur1s/octofetch";
2022-06-03 00:50:03 +00:00
description = "Github user information on terminal";
license = licenses.mit;
2023-01-15 04:14:19 +00:00
maintainers = with maintainers; [ joelkoen ];
2023-11-27 01:17:53 +00:00
mainProgram = "octofetch";
};
}