about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/text/anew/default.nix
blob: 2312d1dc69bfbfe5e34229eafbb055b549ba488e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 ];
  };
}