From 36083716c2c1b45af9c98c6de70bd4f0d13f6615 Mon Sep 17 00:00:00 2001 From: thesola10 Date: Sun, 17 Jul 2022 10:15:15 +0200 Subject: [PATCH] nanomsg: fix pkgconfig file This closes #181812 and facilitates criterion package upgrade --- pkgs/development/libraries/nanomsg/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/nanomsg/default.nix b/pkgs/development/libraries/nanomsg/default.nix index 2bc86edef70a..e7290d54c0b8 100644 --- a/pkgs/development/libraries/nanomsg/default.nix +++ b/pkgs/development/libraries/nanomsg/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, cmake, fetchFromGitHub }: +{ lib, stdenv, cmake, fetchFromGitHub, fetchpatch }: stdenv.mkDerivation rec { version = "1.1.5"; @@ -11,6 +11,14 @@ stdenv.mkDerivation rec { 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; {