Unverified Commit ac50b88e authored by figsoda's avatar figsoda Committed by GitHub
Browse files

Merge pull request #234095 from figsoda/anew

parents cd51ed22 0173cb16
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -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 { };