9 stdenv.mkDerivation rec {
10 pname = "asterisk-module-sccp";
13 src = fetchFromGitHub {
17 sha256 = "sha256-Lonsh7rx3C17LU5pZpZuFxlki0iotDt+FivggFJbldU=";
20 nativeBuildInputs = [ patchelf ];
22 configureFlags = [ "--with-asterisk=${asterisk}" ];
26 "DATAROOTDIR=/build/dest"
31 cp -r /build/dest/${asterisk}/* "$out"
35 p="$out/lib/asterisk/modules/chan_sccp.so"
36 patchelf --set-rpath "$p:${lib.makeLibraryPath [ binutils-unwrapped ]}" "$p"
40 description = "Replacement for the SCCP channel driver in Asterisk";
41 license = licenses.gpl1Only;
42 maintainers = with maintainers; [ das_j ];