summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2019-11-20 00:32:39 -0600
committerWill Dietz <w@wdtz.org>2020-01-01 01:56:00 -0600
commit2dd40bf1584d0aefd0d9b0157382580e0beab799 (patch)
tree39f01766c6db71612fc8432a36e0d603faae2c52
parent68d725d0fdb0c6ad7f158bcabaa199419099d715 (diff)
downloadnixpkgs-2dd40bf1584d0aefd0d9b0157382580e0beab799.tar
nixpkgs-2dd40bf1584d0aefd0d9b0157382580e0beab799.tar.gz
nixpkgs-2dd40bf1584d0aefd0d9b0157382580e0beab799.tar.bz2
nixpkgs-2dd40bf1584d0aefd0d9b0157382580e0beab799.tar.lz
nixpkgs-2dd40bf1584d0aefd0d9b0157382580e0beab799.tar.xz
nixpkgs-2dd40bf1584d0aefd0d9b0157382580e0beab799.tar.zst
nixpkgs-2dd40bf1584d0aefd0d9b0157382580e0beab799.zip
txr: add include to fix w/musl
-rw-r--r--pkgs/tools/misc/txr/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/misc/txr/default.nix b/pkgs/tools/misc/txr/default.nix
index 0700b1b3898..0f68ca82ece 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 <sys/types.h>' sysif.h
+  '';
+
   enableParallelBuilding = true;
 
   doCheck = true;