c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
48 lines
987 B
Nix
48 lines
987 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, cmake
|
|
, pkg-config
|
|
, libuuid
|
|
, openssl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libks";
|
|
version = "1.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "signalwire";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Bfp8+jqXu1utlaYuPewm+t3zHxaTWEw+cGZu1nFzkDk=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
url = "https://raw.githubusercontent.com/openwrt/telephony/5ced7ea4fc9bd746273d564bf3c102f253d2182e/libs/libks/patches/01-find-libm.patch";
|
|
sha256 = "1hyrsdxg69d08qzvf3mbrx2363lw52jcybw8i3ynzqcl228gcg8a";
|
|
})
|
|
];
|
|
|
|
dontUseCmakeBuildDir = true;
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
libuuid
|
|
openssl
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Foundational support for signalwire C products";
|
|
homepage = "https://github.com/signalwire/libks";
|
|
maintainers = with lib.maintainers; [ misuzu ];
|
|
platforms = platforms.linux;
|
|
license = licenses.mit;
|
|
};
|
|
}
|