From e9c612cdfe9852a394fd3e68e6f88deacdd9903c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 13 Jun 2016 10:11:45 +0200 Subject: [PATCH] rr: fix build after gcc-5.4 bump Discussion: https://github.com/NixOS/nixpkgs/commit/772c92ba5c60a --- pkgs/development/tools/analysis/rr/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/analysis/rr/default.nix b/pkgs/development/tools/analysis/rr/default.nix index 926aaeb94ccc..26d98ed866b2 100644 --- a/pkgs/development/tools/analysis/rr/default.nix +++ b/pkgs/development/tools/analysis/rr/default.nix @@ -11,8 +11,9 @@ stdenv.mkDerivation rec { sha256 = "03fl2wgbc1cilaw8hrhfqjsbpi05cid6k4cr3s2vmv5gx0dnrgy4"; }; - patchPhase = '' + postPatch = '' substituteInPlace src/Command.cc --replace '_BSD_SOURCE' '_DEFAULT_SOURCE' + sed '7i#include "math.h"' -i src/Scheduler.cc patchShebangs . '';