blob: ba0321fbdd5b1fd45d03c6c6b485084a3e5e8990 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{ lib
, buildGoModule
, fetchFromGitHub
, nix-update-script
, substituteAll
}:
buildGoModule rec {
pname = "flottbot";
version = "0.13.1";
src = fetchFromGitHub {
owner = "target";
repo = "flottbot";
rev = version;
hash = "sha256-Fv4ZBCQA7gwt11ULIiyFwn+QgoMNgu+1TM9yy2Jz7og=";
};
patches = [
# patch out debug.ReadBuidlInfo since version information is not available with buildGoModule
(substituteAll {
src = ./version.patch;
version = version;
vcsHash = version; # Maybe there is a way to get the git ref from src? idk.
})
];
vendorHash = "sha256-wOUQKFd2Xm/2rvLw8kw8Ejbcq/JUvup/BzZs0fllBYY=";
subPackages = [ "cmd/flottbot" ];
passthru = {
updateScript = nix-update-script { };
};
meta = with lib; {
description = "A chatbot framework written in Go";
homepage = "https://github.com/target/flottbot";
license = licenses.asl20;
maintainers = with maintainers; [ bryanhonof ];
sourceProvenance = [ sourceTypes.fromSource ];
mainProgram = "flottbot";
platforms = platforms.unix;
};
}
|