nixpkgs/pkgs/development/libraries/nanomsg/default.nix
Malo Bourgon 9e4be53221 treewide: add meta.mainProgram to some libraries
where a single bin is provided and someone might actually want to run it
2022-05-04 18:11:50 -07:00

24 lines
553 B
Nix

{ lib, stdenv, cmake, fetchFromGitHub }:
stdenv.mkDerivation rec {
version = "1.1.5";
pname = "nanomsg";
src = fetchFromGitHub {
owner = "nanomsg";
repo = "nanomsg";
rev = version;
sha256 = "01ddfzjlkf2dgijrmm3j3j8irccsnbgfvjcnwslsfaxnrmrq5s64";
};
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;
};
}