nixpkgs/pkgs/by-name/mm/mmake/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

35 lines
1022 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "mmake";
version = "1.4.0";
src = fetchFromGitHub {
owner = "tj";
repo = "mmake";
rev = "v${version}";
sha256 = "sha256-JPsVfLIl06PJ8Nsfu7ogwrttB1G93HTKbZFqUTSV9O8=";
};
vendorHash = "sha256-0z+sujzzBl/rtzXbhL4Os+jYfLUuO9PlXshUDxAH9DU=";
ldflags = [ "-s" "-w" ];
# Almost all tests require non-local networking, trying to resolve githubusercontent.com.
doCheck = false;
meta = with lib; {
homepage = "https://github.com/tj/mmake";
description = "Small program which wraps make to provide additional functionality";
longDescription = ''
Mmake is a small program which wraps make to provide additional
functionality, such as user-friendly help output, remote
includes, and eventually more. It otherwise acts as a
pass-through to standard make.
'';
license = licenses.mit;
maintainers = [ maintainers.gabesoft ];
mainProgram = "mmake";
};
}