at 23.05-pre 48 lines 987 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, fetchpatch 5, cmake 6, pkg-config 7, libuuid 8, openssl 9}: 10 11stdenv.mkDerivation rec { 12 pname = "libks"; 13 version = "1.8.0"; 14 15 src = fetchFromGitHub { 16 owner = "signalwire"; 17 repo = pname; 18 rev = "v${version}"; 19 sha256 = "sha256-Bfp8+jqXu1utlaYuPewm+t3zHxaTWEw+cGZu1nFzkDk="; 20 }; 21 22 patches = [ 23 (fetchpatch { 24 url = "https://raw.githubusercontent.com/openwrt/telephony/5ced7ea4fc9bd746273d564bf3c102f253d2182e/libs/libks/patches/01-find-libm.patch"; 25 sha256 = "1hyrsdxg69d08qzvf3mbrx2363lw52jcybw8i3ynzqcl228gcg8a"; 26 }) 27 ]; 28 29 dontUseCmakeBuildDir = true; 30 31 nativeBuildInputs = [ 32 cmake 33 pkg-config 34 ]; 35 36 buildInputs = [ 37 libuuid 38 openssl 39 ]; 40 41 meta = with lib; { 42 description = "Foundational support for signalwire C products"; 43 homepage = "https://github.com/signalwire/libks"; 44 maintainers = with lib.maintainers; [ misuzu ]; 45 platforms = platforms.linux; 46 license = licenses.mit; 47 }; 48}