about summary refs log tree commit diff
path: root/pkgs/by-name/tw/tweego/package.nix
blob: 16c01c105265c71d174680f6c07d6b0871ac9a01 (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
28
29
30
31
{
  lib,
  buildGoModule,
  fetchFromGitHub,
}:
buildGoModule rec {
  pname = "tweego";
  version = "2.1.1";

  src = fetchFromGitHub {
    owner = "tmedwards";
    repo = "tweego";
    rev = "v${version}";
    hash = "sha256-LE85mSByTz7uFjs0XtrpfD7OARoMPE56FpjFw+FlGYw=";
  };

  proxyVendor = true;
  vendorHash = "sha256-1O27CiCXgrD0RC+3jrVxAiq/RnI2s1FW2/uoBAd1fF8=";

  preBuild = ''
    go mod tidy
  '';

  meta = {
    description = "Free (gratis and libre) command line compiler for Twine/Twee story formats, written in Go";
    homepage = "https://www.motoslave.net/tweego";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [chrispwill];
    mainProgram = "tweego";
  };
}