2021-11-03 08:13:27 +00:00
|
|
|
{ lib
|
2021-11-11 04:07:44 +00:00
|
|
|
, stdenv
|
2021-11-03 08:13:27 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
2021-11-11 04:07:44 +00:00
|
|
|
, Security
|
2021-11-03 08:13:27 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "octofetch";
|
2021-11-10 06:56:40 +00:00
|
|
|
version = "0.3.3";
|
2021-11-03 08:13:27 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "azur1s";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-11-10 06:56:40 +00:00
|
|
|
sha256 = "sha256-/AXE1e02NfxQzJZd0QX6gJDjmFFmuUTOndulZElgIMI=";
|
2021-11-03 08:13:27 +00:00
|
|
|
};
|
|
|
|
|
2021-11-10 06:56:40 +00:00
|
|
|
cargoSha256 = "sha256:1ddyzbpsiy54r13nb9yrm64cbbifixnhkskwg5fvhhzj4ri4ks4a";
|
2021-11-03 08:13:27 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-11-11 04:07:44 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ Security ];
|
2021-11-03 08:13:27 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Github user information on terminal";
|
|
|
|
homepage = "https://github.com/azur1s/octofetch";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jyooru ];
|
|
|
|
};
|
|
|
|
}
|