aboutsummaryrefslogtreecommitdiff
path: root/nixops
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-06 01:38:07 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-06 01:38:53 +0200
commit521a721dbf22bc65dfb61d899354c32ebb1fd8ae (patch)
tree7d3f92da710be136cf30551645fce0276bf1f6f5 /nixops
parentf5efae0f8c4c53798f8f9fc88c5f92f38a223320 (diff)
downloadNix-521a721dbf22bc65dfb61d899354c32ebb1fd8ae.tar.gz
Nix-521a721dbf22bc65dfb61d899354c32ebb1fd8ae.tar.zst
Nix-521a721dbf22bc65dfb61d899354c32ebb1fd8ae.zip
Use standard packages and move bitlbee-mastodon to pkgs for bitlbee
Diffstat (limited to 'nixops')
-rw-r--r--nixops/modules/irc/default.nix57
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, ... }:
2let
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 });
52in
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 };