diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/text/topfew-rs/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/text/topfew-rs/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/text/topfew-rs/default.nix b/nixpkgs/pkgs/tools/text/topfew-rs/default.nix new file mode 100644 index 000000000000..cb3aca7ab53d --- /dev/null +++ b/nixpkgs/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"; + }; +} |