diff options
-rw-r--r-- | nixops/modules/irc/default.nix | 57 | ||||
-rw-r--r-- | pkgs/bitlbee-mastodon/default.nix | 28 | ||||
-rw-r--r-- | pkgs/default.nix | 2 |
3 files changed, 33 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 | }; |
diff --git a/pkgs/bitlbee-mastodon/default.nix b/pkgs/bitlbee-mastodon/default.nix new file mode 100644 index 0000000..0451068 --- /dev/null +++ b/pkgs/bitlbee-mastodon/default.nix | |||
@@ -0,0 +1,28 @@ | |||
1 | { stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, bitlbee, glib, lib }: | ||
2 | stdenv.mkDerivation rec { | ||
3 | name = "bitlbee-mastodon-${version}"; | ||
4 | version = "v1.4.2"; | ||
5 | |||
6 | src = fetchFromGitHub { | ||
7 | rev = version; | ||
8 | owner = "kensanata"; | ||
9 | repo = "bitlbee-mastodon"; | ||
10 | sha256 = "04rakgr1pfsg1vhfwlfbggbzw249j7dmk88xrsnf3n84c5ccdyas"; | ||
11 | }; | ||
12 | |||
13 | nativeBuildInputs = [ autoreconfHook pkgconfig ]; | ||
14 | buildInputs = [ bitlbee glib ]; | ||
15 | |||
16 | preConfigure = '' | ||
17 | export BITLBEE_PLUGINDIR=$out/lib/bitlbee | ||
18 | ./autogen.sh | ||
19 | ''; | ||
20 | |||
21 | meta = { | ||
22 | description = "Bitlbee plugin for Mastodon"; | ||
23 | |||
24 | homepage = https://github.com/kensanata/bitlbee-mastodon; | ||
25 | license = lib.licenses.gpl2Plus; | ||
26 | platforms = lib.platforms.linux; | ||
27 | }; | ||
28 | } | ||
diff --git a/pkgs/default.nix b/pkgs/default.nix index 0833cc2..c407a75 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix | |||
@@ -34,5 +34,7 @@ in | |||
34 | mpd = (callPackage ../pkgs/mpd_0_21 {}).mpd; | 34 | mpd = (callPackage ../pkgs/mpd_0_21 {}).mpd; |
35 | mpd-small = (callPackage ../pkgs/mpd_0_21 {}).mpd-small; | 35 | mpd-small = (callPackage ../pkgs/mpd_0_21 {}).mpd-small; |
36 | 36 | ||
37 | bitlbee-mastodon = callPackage ./bitlbee-mastodon {}; | ||
38 | |||
37 | webapps = callPackage ./webapps { inherit mylibs; }; | 39 | webapps = callPackage ./webapps { inherit mylibs; }; |
38 | } | 40 | } |