-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathflake.nix
More file actions
59 lines (50 loc) · 1.63 KB
/
flake.nix
File metadata and controls
59 lines (50 loc) · 1.63 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
description = "OpenWebUI Content Sync - A tool to sync content from various sources to OpenWebUI";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages = {
openwebui-content-sync = pkgs.buildGoModule {
pname = "openwebui-content-sync";
version = "0.1.0";
src = ./.;
vendorHash = "sha256-ufD+D9Eq20JN0/iLBbbALPmYixL0dOVV/JGqEkwdp5U=";
ldflags = [
"-s"
"-w"
];
meta = with pkgs.lib; {
description = "Sync content from GitHub, Confluence, Jira, Slack, and local folders to OpenWebUI";
homepage = "https://github.com/castai/openwebui-content-sync";
license = licenses.asl20;
maintainers = [ ];
mainProgram = "openwebui-content-sync";
};
};
default = self.packages.${system}.openwebui-content-sync;
};
apps = {
openwebui-content-sync = {
type = "app";
program = "${self.packages.${system}.openwebui-content-sync}/bin/openwebui-content-sync";
};
default = self.apps.${system}.openwebui-content-sync;
};
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
go
gopls
gotools
go-tools
];
};
}
);
}