From 27e83d216998c8b790973f56ca9361fc0f15c71c Mon Sep 17 00:00:00 2001 From: Nydragon Date: Sun, 4 Aug 2024 23:42:56 +0200 Subject: [PATCH] microfetch: init at 0.3.3 Addition of [microfetch]: > A stupidly simple fetch tool, written in Rust. Runs in a fraction of a > second, displays most nonsense people on r/unixporn care about. Aims > to replace fastfetch on my system, but probably not on yours. Though > you are more than welcome to use it on your system: it's fast. [microfetch]: https://github.com/NotAShelf/microfetch --- pkgs/by-name/mi/microfetch/package.nix | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkgs/by-name/mi/microfetch/package.nix diff --git a/pkgs/by-name/mi/microfetch/package.nix b/pkgs/by-name/mi/microfetch/package.nix new file mode 100644 index 000000000000..6f7695073c5c --- /dev/null +++ b/pkgs/by-name/mi/microfetch/package.nix @@ -0,0 +1,28 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, +}: + +rustPlatform.buildRustPackage rec { + pname = "microfetch"; + version = "0.3.3"; + + src = fetchFromGitHub { + owner = "NotAShelf"; + repo = "microfetch"; + rev = "refs/tags/v${version}"; + hash = "sha256-iBfnui7xrx31euYnQxoJf1xXFYFiJnDMadLRAiRCN04="; + }; + + cargoHash = "sha256-J+S6XIMUcWj4jXABQinEDx6dRG5Byc2UxJoKj2y1tQU="; + + meta = { + description = "Microscopic fetch script in Rust, for NixOS systems"; + homepage = "https://github.com/NotAShelf/microfetch"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ nydragon ]; + mainProgram = "microfetch"; + platforms = lib.platforms.linux; + }; +}