about summary refs log tree commit diff
path: root/pkgs/tools/misc/owofetch
diff options
context:
space:
mode:
authornullishamy <amy.codes@null.net>2022-10-02 15:02:42 +0100
committernullishamy <amy.codes@null.net>2022-10-06 00:02:56 +0100
commitace9a489544551e06a15fc92dfd97f29a2da3a86 (patch)
tree3f6a45ccfef2d5164492f3e7448e1e48f14ea427 /pkgs/tools/misc/owofetch
parent737f67bbcea1ec14f0abb04100bb7112274f9348 (diff)
owofetch: init at 0.3.1
Diffstat (limited to 'pkgs/tools/misc/owofetch')
-rw-r--r--pkgs/tools/misc/owofetch/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/misc/owofetch/default.nix b/pkgs/tools/misc/owofetch/default.nix
new file mode 100644
index 0000000000000..54b2fa35d696b
--- /dev/null
+++ b/pkgs/tools/misc/owofetch/default.nix
@@ -0,0 +1,34 @@
+{ lib
+, stdenvNoCC
+, rustPlatform
+, fetchFromGitHub
+, Foundation
+, DiskArbitration
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "owofetch";
+
+  version = "0.3.1";
+
+  src = fetchFromGitHub {
+    owner = "netthier";
+    repo = "owofetch-rs";
+    rev = "v${version}";
+    sha256 = "sha256-I8mzOUvm72KLLBumpgn9gNyx9FKvUrB4ze1iM1+OA18=";
+  };
+
+  cargoSha256 = "sha256-rfN4QERs1H1G7ZZim//78vlxbYfU4Cx7SYYUz/QLKeU=";
+
+  buildInputs = lib.optionals stdenvNoCC.isDarwin [
+    Foundation
+    DiskArbitration
+  ];
+
+  meta = with lib; {
+    description = "Alternative to *fetch, uwuifies all stats";
+    homepage = "https://github.com/netthier/owofetch-rs";
+    license = licenses.gpl3Only;
+    maintainers = with maintainers; [ nullishamy ];
+  };
+}