mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
52 lines
1.4 KiB
Nix
52 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, audiofile
|
|
, libtiff
|
|
, buildPackages
|
|
, fetchpatch
|
|
, autoreconfHook
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "spandsp";
|
|
|
|
patches = [
|
|
# submitted upstream: https://github.com/freeswitch/spandsp/pull/47
|
|
(fetchpatch {
|
|
url = "https://github.com/freeswitch/spandsp/commit/1f810894804d3fa61ab3fc2f3feb0599145a3436.patch";
|
|
hash = "sha256-Cf8aaoriAvchh5cMb75yP2gsZbZaOLha/j5mq3xlkVA=";
|
|
})
|
|
];
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
|
propagatedBuildInputs = [ audiofile libtiff ];
|
|
|
|
configureFlags = [
|
|
# This flag is required to prevent linking error in the cross-compilation case.
|
|
# I think it's fair to assume that realloc(NULL, size) will return a valid memory
|
|
# block for most libc implementation, so let's just assume that and hope for the best.
|
|
"ac_cv_func_malloc_0_nonnull=yes"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
makeFlags = [
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
"CC_FOR_BUILD=${buildPackages.stdenv.cc}/bin/cc"
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
meta = {
|
|
description = "Portable and modular SIP User-Agent with audio and video support";
|
|
homepage = "https://github.com/freeswitch/spandsp";
|
|
platforms = with lib.platforms; unix;
|
|
maintainers = with lib.maintainers; [ misuzu ];
|
|
license = lib.licenses.gpl2;
|
|
downloadPage = "http://www.soft-switch.org/downloads/spandsp/";
|
|
};
|
|
})
|