2021-09-23 15:35:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, c-ares, openssl ? null }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sipsak";
|
|
|
|
version = "4.1.2.1";
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
c-ares
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
# -fcommon: workaround build failure on -fno-common toolchains like upstream
|
|
|
|
# gcc-10. Otherwise build fails as:
|
|
|
|
# ld: transport.o:/build/source/sipsak.h:323: multiple definition of
|
|
|
|
# `address'; auth.o:/build/source/sipsak.h:323: first defined here
|
|
|
|
NIX_CFLAGS_COMPILE = "-std=gnu89 -fcommon";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-23 15:35:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sipwise";
|
|
|
|
repo = "sipsak";
|
|
|
|
rev = "mr${version}";
|
|
|
|
hash = "sha256-y9P6t3xjazRNT6lDZAx+CttdyXruC6Q14b8XF9loeU4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/sipwise/sipsak";
|
|
|
|
description = "SIP Swiss army knife";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ sheenobu ];
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|