summary refs log tree commit diff
path: root/pkgs/tools/misc/octofetch
diff options
context:
space:
mode:
authorJoel <joel@joel.tokyo>2021-11-03 18:13:27 +1000
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-11-05 19:02:00 -0700
commitf3decfa7da519290e61c06fb029bfc8ff0ce4147 (patch)
treea688cef9f163ffa94cd5b814f1acb205b180ddee /pkgs/tools/misc/octofetch
parent3f9f6c91bd3ef6b7bd5d4105b0d4bc93fb30fdc2 (diff)
downloadnixpkgs-f3decfa7da519290e61c06fb029bfc8ff0ce4147.tar
nixpkgs-f3decfa7da519290e61c06fb029bfc8ff0ce4147.tar.gz
nixpkgs-f3decfa7da519290e61c06fb029bfc8ff0ce4147.tar.bz2
nixpkgs-f3decfa7da519290e61c06fb029bfc8ff0ce4147.tar.lz
nixpkgs-f3decfa7da519290e61c06fb029bfc8ff0ce4147.tar.xz
nixpkgs-f3decfa7da519290e61c06fb029bfc8ff0ce4147.tar.zst
nixpkgs-f3decfa7da519290e61c06fb029bfc8ff0ce4147.zip
octofetch: init at 0.3.1
octofetch: use buildInputs for openssl

Co-authored-by: Jonathan Ringer <jonringer@users.noreply.github.com>
Diffstat (limited to 'pkgs/tools/misc/octofetch')
-rw-r--r--pkgs/tools/misc/octofetch/default.nix31
1 files changed, 31 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..b415b43d0cd
--- /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 ];
+  };
+}