nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "tml";
9 version = "0.7.0";
10
11 src = fetchFromGitHub {
12 owner = "liamg";
13 repo = "tml";
14 rev = "v${version}";
15 hash = "sha256-QMXEKjOKYQlzXc2ds8OAAL5xUxayGb6mxxyeHsCkfwo=";
16 };
17
18 vendorHash = "sha256-CHZS1SpPko8u3tZAYbf+Di882W55X9Q/zd4SmFCRgKM=";
19
20 ldflags = [
21 "-s"
22 "-w"
23 ];
24
25 meta = {
26 description = "Tiny markup language for terminal output";
27 mainProgram = "tml";
28 homepage = "https://github.com/liamg/tml";
29 changelog = "https://github.com/liamg/tml/releases/tag/v${version}";
30 license = lib.licenses.unlicense;
31 maintainers = [ ];
32 };
33}