mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
asterisk-module-sccp: Init at 4.3.2-epsilon
This commit is contained in:
parent
cf7a15a482
commit
a059f0785e
34
pkgs/servers/asterisk/sccp/default.nix
Normal file
34
pkgs/servers/asterisk/sccp/default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ stdenv, fetchFromGitHub, binutils-unwrapped, patchelf, asterisk }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "asterisk-module-sccp";
|
||||
version = "4.3.2-epsilon";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "chan-sccp";
|
||||
repo = "chan-sccp";
|
||||
rev = "v${version}";
|
||||
sha256 = "0sp74xvb35m32flsrib0983yn1dyz3qk69vp0gqbx620ycbz19gd";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ patchelf ];
|
||||
|
||||
configureFlags = [ "--with-asterisk=${asterisk}" ];
|
||||
|
||||
installFlags = [ "DESTDIR=/build/dest" "DATAROOTDIR=/build/dest" ];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p "$out"
|
||||
cp -r /build/dest/${asterisk}/* "$out"
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
p="$out/lib/asterisk/modules/chan_sccp.so"
|
||||
patchelf --set-rpath "$p:${stdenv.lib.makeLibraryPath [ binutils-unwrapped ]}" "$p"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Replacement for the SCCP channel driver in Asterisk";
|
||||
license = licenses.gpl1Only;
|
||||
maintainers = with maintainers; [ das_j ];
|
||||
};
|
||||
}
|
@ -16040,6 +16040,8 @@ in
|
||||
asterisk asterisk-stable asterisk-lts
|
||||
asterisk_13 asterisk_15 asterisk_16;
|
||||
|
||||
asterisk-module-sccp = callPackage ../servers/asterisk/sccp { };
|
||||
|
||||
sabnzbd = callPackage ../servers/sabnzbd { };
|
||||
|
||||
bftpd = callPackage ../servers/ftp/bftpd {};
|
||||
|
Loading…
Reference in New Issue
Block a user