See https://github.com/NixOS/nixpkgs/issues/458096. Signed-off-by: Leonard Sheng Sheng Lee <leonard.sheng.sheng.lee@gmail.com>
36 lines
737 B
Nix
36 lines
737 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "tml";
|
|
version = "0.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "liamg";
|
|
repo = "tml";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-hDcQIBwjm7ZL9zUdTeZfvMeh/kqRk6wjwtCUvTJCG/U=";
|
|
};
|
|
|
|
vendorHash = "sha256-CHZS1SpPko8u3tZAYbf+Di882W55X9Q/zd4SmFCRgKM=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
meta = {
|
|
description = "Tiny markup language for terminal output";
|
|
mainProgram = "tml";
|
|
homepage = "https://github.com/liamg/tml";
|
|
changelog = "https://github.com/liamg/tml/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.unlicense;
|
|
maintainers = with lib.maintainers; [
|
|
sheeeng
|
|
];
|
|
};
|
|
})
|