Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

45 lines
955 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
binutils-unwrapped,
patchelf,
asterisk,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "asterisk-module-sccp";
version = "4.3.5";
src = fetchFromGitHub {
owner = "chan-sccp";
repo = "chan-sccp";
tag = "v${finalAttrs.version}";
hash = "sha256-Lonsh7rx3C17LU5pZpZuFxlki0iotDt+FivggFJbldU=";
};
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:${lib.makeLibraryPath [ binutils-unwrapped ]}" "$p"
'';
meta = {
description = "Replacement for the SCCP channel driver in Asterisk";
license = lib.licenses.gpl1Only;
maintainers = with lib.maintainers; [ das_j ];
};
})