about summary refs log tree commit diff
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-10-23 00:01:46 +0000
committerGitHub <noreply@github.com>2021-10-23 00:01:46 +0000
commit421a9e648e63a81df4422ec0e8da255251fdf394 (patch)
tree307c04ba7c07fe2742746c50cade8bfad539d8d5 /pkgs/tools/text
parentc93daf97af0c1bfebe7f3dbbd8c54ef212cb9408 (diff)
parent08a0d4994a99aec924abda97d0c4abf1aa70aa28 (diff)
Merge master into staging-next
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/anewer/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/tools/text/anewer/default.nix b/pkgs/tools/text/anewer/default.nix
new file mode 100644
index 0000000000000..e41b12cee4478
--- /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.gpl3Plus;
+    maintainers = with maintainers; [ figsoda ];
+  };
+}