From 1f203bab27a6efcc167730b673841b7ac45b0fe8 Mon Sep 17 00:00:00 2001 From: figsoda Date: Wed, 19 Apr 2023 12:11:47 -0400 Subject: [PATCH] topfew-rs: init at 0.2.3 --- pkgs/tools/text/topfew-rs/default.nix | 26 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/tools/text/topfew-rs/default.nix diff --git a/pkgs/tools/text/topfew-rs/default.nix b/pkgs/tools/text/topfew-rs/default.nix new file mode 100644 index 000000000000..cb3aca7ab53d --- /dev/null +++ b/pkgs/tools/text/topfew-rs/default.nix @@ -0,0 +1,26 @@ +{ lib +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage rec { + pname = "topfew-rs"; + version = "0.2.3"; + + src = fetchFromGitHub { + owner = "djc"; + repo = "topfew-rs"; + rev = version; + hash = "sha256-VlSLPcKw3LYGnmKk5YOkcGIizw1tqtKF2BykY+1MtvY="; + }; + + cargoHash = "sha256-j+afSwDHau7H20siYtid7l8tq+iS24KJBsNZAEdNJlI="; + + meta = with lib; { + description = "Rust implementation of Tim Bray's topfew tool"; + homepage = "https://github.com/djc/topfew-rs"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ figsoda ]; + mainProgram = "tf"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 89d0a2fae172..7920fd030677 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12894,6 +12894,8 @@ with pkgs; toml2nix = callPackage ../development/tools/toml2nix { }; + topfew-rs = callPackage ../tools/text/topfew-rs { }; + topgrade = callPackage ../tools/misc/topgrade { inherit (darwin.apple_sdk.frameworks) AppKit Cocoa Foundation; };