diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/text/anew/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/text/anew/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/text/anew/default.nix b/nixpkgs/pkgs/tools/text/anew/default.nix new file mode 100644 index 000000000000..2312d1dc69bf --- /dev/null +++ b/nixpkgs/pkgs/tools/text/anew/default.nix @@ -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 ]; + }; +} |