btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / mm / mmake / package.nix
blobb0aff161ecea827635102e402521c4e2d2cd92a3
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "mmake";
5   version = "1.4.0";
7   src = fetchFromGitHub {
8     owner = "tj";
9     repo = "mmake";
10     rev = "v${version}";
11     sha256 = "sha256-JPsVfLIl06PJ8Nsfu7ogwrttB1G93HTKbZFqUTSV9O8=";
12   };
14   vendorHash = "sha256-0z+sujzzBl/rtzXbhL4Os+jYfLUuO9PlXshUDxAH9DU=";
16   ldflags = [ "-s" "-w" ];
18   # Almost all tests require non-local networking, trying to resolve githubusercontent.com.
19   doCheck = false;
21   meta = with lib; {
22     homepage = "https://github.com/tj/mmake";
23     description = "Small program  which wraps make to provide additional functionality";
24     longDescription = ''
25       Mmake is a small program  which wraps make to provide additional
26       functionality,  such   as  user-friendly  help   output,  remote
27       includes,  and   eventually  more.   It  otherwise  acts   as  a
28       pass-through to standard make.
29     '';
30     license = licenses.mit;
31     maintainers = [ maintainers.gabesoft ];
32     mainProgram = "mmake";
33   };