python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libks / default.nix
blobf1b6d18a86b240af5aa1022d2116a600cc2d7037
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , fetchpatch
5 , cmake
6 , pkg-config
7 , libuuid
8 , openssl
9 }:
11 stdenv.mkDerivation rec {
12   pname = "libks";
13   version = "1.8.0";
15   src = fetchFromGitHub {
16     owner = "signalwire";
17     repo = pname;
18     rev = "v${version}";
19     sha256 = "sha256-Bfp8+jqXu1utlaYuPewm+t3zHxaTWEw+cGZu1nFzkDk=";
20   };
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   ];
29   dontUseCmakeBuildDir = true;
31   nativeBuildInputs = [
32     cmake
33     pkg-config
34   ];
36   buildInputs = [
37     libuuid
38     openssl
39   ];
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   };