From 2dd40bf1584d0aefd0d9b0157382580e0beab799 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Wed, 20 Nov 2019 00:32:39 -0600 Subject: [PATCH] txr: add include to fix w/musl --- pkgs/tools/misc/txr/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/misc/txr/default.nix b/pkgs/tools/misc/txr/default.nix index 0700b1b3898b..0f68ca82ece8 100644 --- a/pkgs/tools/misc/txr/default.nix +++ b/pkgs/tools/misc/txr/default.nix @@ -12,6 +12,11 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ bison flex ]; buildInputs = [ libffi ]; + # fix usage of off_t without include + postPatch = '' + sed -i '1i#include ' sysif.h + ''; + enableParallelBuilding = true; doCheck = true;