nixpkgs/pkgs/by-name/an/anew/package.nix
2025-06-24 13:24:35 +00:00

33 lines
596 B
Nix

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