From ba085ee318482ecd2589a30b0b48dd645199121d Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Wed, 7 May 2014 15:33:34 -0500 Subject: [PATCH] libevent: fix event_rpcgen.py This should help fix the COPRTHR build. Although a Python dependency was added, it was broken anyway... Signed-off-by: Austin Seipp --- pkgs/development/libraries/libevent/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libevent/default.nix b/pkgs/development/libraries/libevent/default.nix index a2a8403b498..bb854139b79 100644 --- a/pkgs/development/libraries/libevent/default.nix +++ b/pkgs/development/libraries/libevent/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl}: +{ stdenv, fetchurl, python }: let version = "2.0.21"; in stdenv.mkDerivation { @@ -9,6 +9,11 @@ stdenv.mkDerivation { sha256 = "1xblymln9vihdmf1aqkp8chwvnhpdch3786bh30bj75slnl31992"; }; + patchPhase = '' + substituteInPlace event_rpcgen.py \ + --replace "/usr/bin/env python2" "${python}/bin/python" + ''; + meta = { description = "libevent, an event notification library";