diff options
Diffstat (limited to 'pkgs/tools/misc/octofetch')
-rw-r--r-- | pkgs/tools/misc/octofetch/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/misc/octofetch/default.nix b/pkgs/tools/misc/octofetch/default.nix new file mode 100644 index 00000000000..e0cf9d98d65 --- /dev/null +++ b/pkgs/tools/misc/octofetch/default.nix @@ -0,0 +1,33 @@ +{ lib +, stdenv +, fetchFromGitHub +, rustPlatform +, pkg-config +, openssl +, Security +}: + +rustPlatform.buildRustPackage rec { + pname = "octofetch"; + version = "0.3.3"; + + src = fetchFromGitHub { + owner = "azur1s"; + repo = pname; + rev = version; + sha256 = "sha256-/AXE1e02NfxQzJZd0QX6gJDjmFFmuUTOndulZElgIMI="; + }; + + cargoSha256 = "sha256:1ddyzbpsiy54r13nb9yrm64cbbifixnhkskwg5fvhhzj4ri4ks4a"; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = lib.optionals stdenv.isLinux [ openssl ] + ++ lib.optionals stdenv.isDarwin [ Security ]; + + meta = with lib; { + description = "Github user information on terminal"; + homepage = "https://github.com/azur1s/octofetch"; + license = licenses.mit; + maintainers = with maintainers; [ jyooru ]; + }; +} |