Home

nur @663a43c227a199b2d4b4203021addeff6b07e66c - refs - log -
-
https://git.jolheiser.com/nur.git
My NUR
nur / pkgs / opengist / default.nix
- raw
 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
{
  buildGoModule,
  fetchFromGitHub,
  lib,
  ...
}:
buildGoModule rec {
  pname = "opengist";
  version = "1.6.1";

  src = fetchFromGitHub {
    owner = "thomiceli";
    repo = "opengist";
    rev = "v${version}";
    sha256 = "sha256-rJ8oiH08kSSFNgPHKGo68Oi1i3L1SEJyHuzoxKMOZME=";
  };

  vendorSha256 = "sha256-IorqXJKzUTUL5zfKRipZaJtRlwVOmTwolJXFG/34Ais=";
  doCheck = false;

  ldflags = ["-s" "-w" "-X=github.com/thomiceli/opengist/internal/config.OpengistVersion.Version=${version}"];

  meta = with lib; {
    description = "Self-hosted pastebin powered by Git, open-source alternative to Github Gist. ";
    homepage = "https://github.com/thomiceli/opengist";
    license = licenses.agpl3;
  };
}