From f3decfa7da519290e61c06fb029bfc8ff0ce4147 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 3 Nov 2021 18:13:27 +1000 Subject: [PATCH] octofetch: init at 0.3.1 octofetch: use buildInputs for openssl Co-authored-by: Jonathan Ringer --- pkgs/tools/misc/octofetch/default.nix | 31 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/tools/misc/octofetch/default.nix diff --git a/pkgs/tools/misc/octofetch/default.nix b/pkgs/tools/misc/octofetch/default.nix new file mode 100644 index 000000000000..b415b43d0cd3 --- /dev/null +++ b/pkgs/tools/misc/octofetch/default.nix @@ -0,0 +1,31 @@ +{ lib +, fetchFromGitHub +, rustPlatform +, pkg-config +, openssl +}: + +rustPlatform.buildRustPackage rec { + pname = "octofetch"; + version = "0.3.1"; + + src = fetchFromGitHub { + owner = "azur1s"; + repo = pname; + rev = version; + sha256 = "sha256-ciBFTVdHotjifNAoXJjI9CumyK98OkMmfWMbrEldlNI="; + }; + + cargoSha256 = "sha256-Gzemm5HY6YwlxesQlil6R+34OtAeU2k7f/9+Lll3i8k="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ openssl ]; + + meta = with lib; { + description = "Github user information on terminal"; + homepage = "https://github.com/azur1s/octofetch"; + license = licenses.mit; + maintainers = with maintainers; [ jyooru ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index de2b285800a0..a86c88a068b2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8035,6 +8035,8 @@ with pkgs; ocserv = callPackage ../tools/networking/ocserv { }; + octofetch = callPackage ../tools/misc/octofetch { }; + oha = callPackage ../tools/networking/oha { inherit (darwin.apple_sdk.frameworks) Security; };