2021-09-19 17:09:45 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, c-ares, openssl ? null }:
|
2016-02-09 21:46:05 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "sipsak";
|
2016-02-09 21:46:05 +00:00
|
|
|
version = "4.1.2.1";
|
|
|
|
|
2022-09-25 02:49:25 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2016-02-09 21:46:05 +00:00
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
c-ares
|
|
|
|
];
|
|
|
|
|
2022-05-29 06:55:56 +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";
|
2016-04-15 17:30:09 +00:00
|
|
|
|
2021-09-19 17:09:45 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sipwise";
|
|
|
|
repo = "sipsak";
|
|
|
|
rev = "mr${version}";
|
|
|
|
hash = "sha256-y9P6t3xjazRNT6lDZAx+CttdyXruC6Q14b8XF9loeU4=";
|
2016-02-09 21:46:05 +00:00
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/sipwise/sipsak";
|
2016-02-09 21:46:05 +00:00
|
|
|
description = "SIP Swiss army knife";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl2;
|
2016-03-16 01:44:44 +00:00
|
|
|
maintainers = with maintainers; [ sheenobu ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = with platforms; unix;
|
2016-02-09 21:46:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|