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
48 lines
943 B
Nix
48 lines
943 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
ninja,
|
|
mbedtlsSupport ? true,
|
|
mbedtls,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nng";
|
|
version = "1.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nanomsg";
|
|
repo = "nng";
|
|
rev = "v${version}";
|
|
hash = "sha256-yH/iK/DuVff2qby/wk6jJ9Tsmxrl9eMrb9bOxCzvmdA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
ninja
|
|
]
|
|
++ lib.optionals mbedtlsSupport [ mbedtls ];
|
|
|
|
buildInputs = lib.optionals mbedtlsSupport [ mbedtls ];
|
|
|
|
cmakeFlags = [
|
|
"-G Ninja"
|
|
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
|
|
]
|
|
++ lib.optionals mbedtlsSupport [
|
|
"-DMBEDTLS_ROOT_DIR=${mbedtls}"
|
|
"-DNNG_ENABLE_TLS=ON"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://nng.nanomsg.org/";
|
|
description = "Nanomsg next generation";
|
|
license = licenses.mit;
|
|
mainProgram = "nngcat";
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ nviets ];
|
|
};
|
|
}
|