1{ lib, rustPlatform, fetchFromGitHub }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "anewer";
5 version = "0.1.6";
6
7 src = fetchFromGitHub {
8 owner = "ysf";
9 repo = pname;
10 rev = version;
11 sha256 = "181mi674354bddnq894yyq587w7skjh35vn61i41vfi6lqz5dy3d";
12 };
13
14 cargoSha256 = "sha256-LJ0l5CZM5NqdbCZe4ELkYf9EkKyBxL/LrNmFy+JS6gM=";
15
16 meta = with lib; {
17 description = "Append lines from stdin to a file if they don't already exist in the file";
18 homepage = "https://github.com/ysf/anewer";
19 license = licenses.gpl3Plus;
20 maintainers = with maintainers; [ figsoda ];
21 };
22}