diff options
Diffstat (limited to 'nixops/modules')
-rw-r--r-- | nixops/modules/irc/default.nix | 57 |
1 files changed, 3 insertions, 54 deletions
diff --git a/nixops/modules/irc/default.nix b/nixops/modules/irc/default.nix index 4cf27e5..6500ca5 100644 --- a/nixops/modules/irc/default.nix +++ b/nixops/modules/irc/default.nix | |||
@@ -1,55 +1,4 @@ | |||
1 | { lib, pkgs, config, myconfig, mylibs, ... }: | 1 | { lib, pkgs, config, myconfig, mylibs, ... }: |
2 | let | ||
3 | bitlbee-mastodon = with pkgs; stdenv.mkDerivation rec { | ||
4 | name = "bitlbee-mastodon-${version}"; | ||
5 | version = "v1.4.2"; | ||
6 | |||
7 | src = fetchFromGitHub { | ||
8 | rev = version; | ||
9 | owner = "kensanata"; | ||
10 | repo = "bitlbee-mastodon"; | ||
11 | sha256 = "04rakgr1pfsg1vhfwlfbggbzw249j7dmk88xrsnf3n84c5ccdyas"; | ||
12 | }; | ||
13 | |||
14 | nativeBuildInputs = [ autoreconfHook pkgconfig ]; | ||
15 | buildInputs = [ bitlbee glib ]; | ||
16 | |||
17 | preConfigure = '' | ||
18 | export BITLBEE_PLUGINDIR=$out/lib/bitlbee | ||
19 | ./autogen.sh | ||
20 | ''; | ||
21 | |||
22 | meta = { | ||
23 | description = "Bitlbee plugin for Mastodon"; | ||
24 | |||
25 | homepage = https://github.com/kensanata/bitlbee-mastodon; | ||
26 | license = lib.licenses.gpl2Plus; | ||
27 | platforms = stdenv.lib.platforms.linux; | ||
28 | }; | ||
29 | }; | ||
30 | bitlbee-discord = pkgs.bitlbee-discord.overrideAttrs(old: rec { | ||
31 | name = "bitlbee-discord-${version}"; | ||
32 | version = "0.4.2"; | ||
33 | |||
34 | src = pkgs.fetchFromGitHub { | ||
35 | rev = version; | ||
36 | owner = "sm00th"; | ||
37 | repo = "bitlbee-discord"; | ||
38 | sha256 = "02pigk2vbz0jdz11f96sygdvp1j762yjn62h124fkcsc070g7a2f"; | ||
39 | }; | ||
40 | }); | ||
41 | bitlbee-facebook = pkgs.bitlbee-facebook.overrideAttrs(old: rec { | ||
42 | name = "bitlbee-facebook-${version}"; | ||
43 | version = "1.2.0"; | ||
44 | |||
45 | src = pkgs.fetchFromGitHub { | ||
46 | rev = "v${version}"; | ||
47 | owner = "bitlbee"; | ||
48 | repo = "bitlbee-facebook"; | ||
49 | sha256 = "11068zhb1v55b1x0nhjc4f3p0glccxpcyk5c1630hfdzkj7vyqhn"; | ||
50 | }; | ||
51 | }); | ||
52 | in | ||
53 | { | 2 | { |
54 | options = { | 3 | options = { |
55 | services.irc.enable = lib.mkOption { | 4 | services.irc.enable = lib.mkOption { |
@@ -78,9 +27,9 @@ in | |||
78 | pkgs.purple-matrix | 27 | pkgs.purple-matrix |
79 | ]; | 28 | ]; |
80 | plugins = [ | 29 | plugins = [ |
81 | bitlbee-mastodon | 30 | pkgs.bitlbee-mastodon |
82 | bitlbee-facebook | 31 | pkgs.bitlbee-facebook |
83 | bitlbee-discord | 32 | pkgs.bitlbee-discord |
84 | pkgs.bitlbee-steam | 33 | pkgs.bitlbee-steam |
85 | ]; | 34 | ]; |
86 | }; | 35 | }; |