nixpkgs/pkgs/servers/xmpp/biboumi/default.nix
Ryan Mulligan 848d597eab biboumi: 6.1 -> 7.2
Semi-automatic update. These checks were done:

- built on NixOS
- ran `/nix/store/ng1gidmaivbb5ngd4awq6wgraa55yjd5-biboumi-7.2/bin/biboumi --help` got 0 exit code
- found 7.2 with grep in /nix/store/ng1gidmaivbb5ngd4awq6wgraa55yjd5-biboumi-7.2
- found 7.2 in filename of file in /nix/store/ng1gidmaivbb5ngd4awq6wgraa55yjd5-biboumi-7.2
2018-03-07 18:25:56 -08:00

45 lines
1.4 KiB
Nix

{ stdenv, fetchurl, fetchgit, cmake, libuuid, expat, sqlite, libidn,
libiconv, botan2, systemd, pkgconfig, udns, pandoc, procps } :
stdenv.mkDerivation rec {
name = "biboumi-${version}";
version = "7.2";
src = fetchurl {
url = "https://git.louiz.org/biboumi/snapshot/biboumi-${version}.tar.xz";
sha256 = "0gyr2lp2imrjm5hvijcq0s7k9fzkirfl70cprjy9r4yvq6mg1jvd";
};
louiz_catch = fetchgit {
url = https://lab.louiz.org/louiz/Catch.git;
rev = "35f510545d55a831372d3113747bf1314ff4f2ef";
sha256 = "1l5b32sgr9zc2hlfr445hwwxv18sh3cn5q1xmvf588z6jyf88g2g";
};
patches = [ ./catch.patch ];
nativeBuildInputs = [ cmake pkgconfig pandoc ];
buildInputs = [ libuuid expat sqlite libiconv libidn botan2 systemd
udns procps ];
inherit procps;
preConfigure = ''
substituteInPlace CMakeLists.txt --replace /etc/biboumi $out/etc/biboumi
substituteInPlace unit/biboumi.service.cmake --replace /bin/kill $procps/bin/kill
cp $louiz_catch/single_include/catch.hpp tests/
# echo "policy_directory=$out/etc/biboumi" >> conf/biboumi.cfg
# TODO include conf/biboumi.cfg as example somewhere
'';
enableParallelBuilding = true;
doCheck = true;
meta = with stdenv.lib; {
description = "Modern XMPP IRC gateway";
platforms = platforms.unix;
homepage = https://lab.louiz.org/louiz/biboumi;
license = licenses.zlib;
maintainers = [ maintainers.woffs ];
};
}