depot/third_party/nixpkgs/pkgs/development/libraries/nanomsg/default.nix
Default email 13da32182d Project import generated by Copybara.
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
2022-08-21 15:32:41 +02:00

31 lines
851 B
Nix

{ lib, stdenv, cmake, fetchFromGitHub, fetchpatch }:
stdenv.mkDerivation rec {
version = "1.1.5";
pname = "nanomsg";
src = fetchFromGitHub {
owner = "nanomsg";
repo = "nanomsg";
rev = version;
sha256 = "01ddfzjlkf2dgijrmm3j3j8irccsnbgfvjcnwslsfaxnrmrq5s64";
};
patches = [
# Add pkgconfig fix from https://github.com/nanomsg/nanomsg/pull/1085
(fetchpatch {
url = "https://github.com/nanomsg/nanomsg/commit/e3323f19579529d272cb1d55bd6b653c4f34c064.patch";
sha256 = "URz7TAqqpKxqjgvQqNX4WNSShwiEzAvO2h0hCZ2NhVY=";
})
];
nativeBuildInputs = [ cmake ];
meta = with lib; {
description= "Socket library that provides several common communication patterns";
homepage = "https://nanomsg.org/";
license = licenses.mit;
mainProgram = "nanocat";
platforms = platforms.unix;
};
}