mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
27 lines
666 B
Nix
27 lines
666 B
Nix
{ stdenv, fetchurl, zeromq }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "3.0.2";
|
|
pname = "czmq";
|
|
|
|
src = fetchurl {
|
|
url = "http://download.zeromq.org/${pname}-${version}.tar.gz";
|
|
sha256 = "16k9awrhdsymx7dnmvqcnkaq8lz8x8zppy6sh7ls8prpd6mkkjlb";
|
|
};
|
|
|
|
patches = [ ./czmq3-gcc7.patch ];
|
|
|
|
# Fix build on Glibc 2.24.
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
|
|
|
# Needs to be propagated for the .pc file to work
|
|
propagatedBuildInputs = [ zeromq ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://czmq.zeromq.org/;
|
|
description = "High-level C Binding for ZeroMQ";
|
|
license = licenses.mpl20;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|