about summary refs log tree commit diff
path: root/pkgs/tools/text/anewer
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2021-10-22 13:03:52 -0400
committerfigsoda <figsoda@pm.me>2021-10-22 13:03:52 -0400
commite2db47a66f20ef8c8ca7f3202a416c977d6799db (patch)
tree2096c7dac7138be31602e66cb6d1d8262ef6e3c7 /pkgs/tools/text/anewer
parent2526c085bf0328c297fe304b574d4c1183f6e78b (diff)
downloadnixlib-e2db47a66f20ef8c8ca7f3202a416c977d6799db.tar
nixlib-e2db47a66f20ef8c8ca7f3202a416c977d6799db.tar.gz
nixlib-e2db47a66f20ef8c8ca7f3202a416c977d6799db.tar.bz2
nixlib-e2db47a66f20ef8c8ca7f3202a416c977d6799db.tar.lz
nixlib-e2db47a66f20ef8c8ca7f3202a416c977d6799db.tar.xz
nixlib-e2db47a66f20ef8c8ca7f3202a416c977d6799db.tar.zst
nixlib-e2db47a66f20ef8c8ca7f3202a416c977d6799db.zip
anewer: init at 0.1.6
Diffstat (limited to 'pkgs/tools/text/anewer')
-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 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 ];
+  };
+}