mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
36 lines
961 B
Nix
36 lines
961 B
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook, c-ares, openssl ? null }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sipsak";
|
|
version = "4.1.2.1";
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
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
|
|
env.NIX_CFLAGS_COMPILE = "-std=gnu89 -fcommon";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sipwise";
|
|
repo = "sipsak";
|
|
rev = "mr${version}";
|
|
hash = "sha256-y9P6t3xjazRNT6lDZAx+CttdyXruC6Q14b8XF9loeU4=";
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/sipwise/sipsak";
|
|
description = "SIP Swiss army knife";
|
|
license = lib.licenses.gpl2;
|
|
maintainers = with maintainers; [ sheenobu ];
|
|
platforms = with platforms; unix;
|
|
};
|
|
|
|
}
|
|
|