Merge pull request #234095 from figsoda/anew

This commit is contained in:
figsoda 2023-05-27 21:26:42 -04:00 committed by GitHub
commit ac50b88e1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "anew";
version = "0.1.1";
src = fetchFromGitHub {
owner = "tomnomnom";
repo = "anew";
rev = "v${version}";
hash = "sha256-NQSs99/2GPOtXkO7k+ar16G4Ecu4CPGMd/CTwEhcyto=";
};
vendorHash = null;
ldflags = [ "-s" "-w" ];
meta = with lib; {
description = "A tool for adding new lines to files, skipping duplicates";
homepage = "https://github.com/tomnomnom/anew";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}

View file

@ -2816,6 +2816,8 @@ with pkgs;
android-tools = lowPrio (darwin.apple_sdk_11_0.callPackage ../tools/misc/android-tools { });
anew = callPackage ../tools/text/anew { };
anewer = callPackage ../tools/text/anewer { };
angle-grinder = callPackage ../tools/text/angle-grinder { };