nixpkgs/pkgs/tools/networking/sipsak/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
957 B
Nix
Raw Normal View History

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 {
pname = "sipsak";
2016-02-09 21:46:05 +00:00
version = "4.1.2.1";
nativeBuildInputs = [ autoreconfHook ];
2016-02-09 21:46:05 +00:00
buildInputs = [
openssl
c-ares
];
# -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
};
meta = with lib; {
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;
maintainers = with maintainers; [ sheenobu ];
platforms = with platforms; unix;
2016-02-09 21:46:05 +00:00
};
}