From e2db47a66f20ef8c8ca7f3202a416c977d6799db Mon Sep 17 00:00:00 2001 From: figsoda Date: Fri, 22 Oct 2021 13:03:52 -0400 Subject: anewer: init at 0.1.6 --- pkgs/tools/text/anewer/default.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pkgs/tools/text/anewer/default.nix (limited to 'pkgs/tools/text/anewer') diff --git a/pkgs/tools/text/anewer/default.nix b/pkgs/tools/text/anewer/default.nix new file mode 100644 index 000000000000..49113a64d5bf --- /dev/null +++ b/pkgs/tools/text/anewer/default.nix @@ -0,0 +1,22 @@ +{ lib, rustPlatform, fetchFromGitHub }: + +rustPlatform.buildRustPackage rec { + pname = "anewer"; + version = "0.1.6"; + + src = fetchFromGitHub { + owner = "ysf"; + repo = pname; + rev = version; + sha256 = "181mi674354bddnq894yyq587w7skjh35vn61i41vfi6lqz5dy3d"; + }; + + cargoSha256 = "sha256-LJ0l5CZM5NqdbCZe4ELkYf9EkKyBxL/LrNmFy+JS6gM="; + + meta = with lib; { + description = "Append lines from stdin to a file if they don't already exist in the file"; + homepage = "https://github.com/ysf/anewer"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ figsoda ]; + }; +} -- cgit 1.4.1